From f312e8d1c26ed526799a5e401bc88efe192eea3a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 21 Aug 2024 02:16:49 +0200 Subject: [PATCH] [MIRROR] Add dreamluau to the tgs precompile (#29234) * Add dreamluau to the tgs precompile (#85624) There's no SO bundled we need to build it for campbell * Add dreamluau to the tgs precompile --------- Co-authored-by: oranges --- tools/tgs_scripts/PreCompile.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/tgs_scripts/PreCompile.sh b/tools/tgs_scripts/PreCompile.sh index ae8cba7a45b..d0506b74c7b 100755 --- a/tools/tgs_scripts/PreCompile.sh +++ b/tools/tgs_scripts/PreCompile.sh @@ -32,6 +32,27 @@ env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --ignore-rust-version --re mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/librust_g.so" cd .. +# +cd "$original_dir" +# update dreamluau +if [ ! -d "dreamluau" ]; then + echo "Cloning dreamluau..." + git clone https://github.com/tgstation/dreamluau + cd dreamluau + ~/.cargo/bin/rustup target add i686-unknown-linux-gnu +else + echo "Fetching dreamlaua..." + cd dreamluau + git fetch + ~/.cargo/bin/rustup target add i686-unknown-linux-gnu +fi + +echo "Deploying Dreamlaua..." +git checkout "$DREAMLUAU_VERSION" +env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --ignore-rust-version --release --target=i686-unknown-linux-gnu +mv target/i686-unknown-linux-gnu/release/libdreamluau.so "$1/libdreamluau.so" +cd .. + # compile tgui echo "Compiling tgui..." cd "$1"