[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 <email@oranges.net.nz>
This commit is contained in:
SkyratBot
2024-08-21 07:16:49 +07:00
committed by GitHub
co-authored by oranges
parent 15ff97f18f
commit f312e8d1c2
+21
View File
@@ -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"