Skip to content

Commit

Permalink
Upgrades TGS build script to actually build RUSTG (#25340)
Browse files Browse the repository at this point in the history
  • Loading branch information
AffectedArc07 authored May 2, 2024
1 parent 2144a93 commit 02a09a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
version: 1
# The BYOND version to use
# Must be interpreted as a string, keep quoted
byond: "515.1620"
byond: '515.1633'
# Folders to create in "<instance_path>/Configuration/GameStaticFiles/"
static_files:
# Config directory should be static
Expand Down
19 changes: 16 additions & 3 deletions tools/tgs_scripts/PreCompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ../../

0 comments on commit 02a09a7

Please sign in to comment.