-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrades TGS build script to actually build RUSTG (#25340)
- Loading branch information
1 parent
2144a93
commit 02a09a7
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,22 @@ cd "$1" | |
. dependencies.sh | ||
cd "$original_dir" | ||
|
||
git config --global user.name | ||
if [ $? -eq 1 ] | ||
then | ||
git config --global user.name "paradise_tgs_script" | ||
fi | ||
|
||
git config --global user.email | ||
if [ $? -eq 1 ] | ||
then | ||
git config --global user.email "[email protected]" | ||
fi | ||
|
||
# update rust-g | ||
if [ ! -d "rust-g" ]; then | ||
echo "Cloning rust-g..." | ||
git clone https://github.com/tgstation/rust-g | ||
git clone https://github.com/ParadiseSS13/rust-g | ||
cd rust-g | ||
~/.cargo/bin/rustup target add i686-unknown-linux-gnu | ||
else | ||
|
@@ -27,7 +38,9 @@ else | |
fi | ||
|
||
echo "Deploying rust-g..." | ||
git checkout "$RUST_G_VERSION" | ||
git reset --hard "$RUSTG_VERSION" | ||
./apply-patches.sh | ||
cd paradise-rust-g | ||
env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --features all --target=i686-unknown-linux-gnu | ||
mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/librust_g.so" | ||
cd .. | ||
cd ../../ |