diff --git a/tools/tgs4_scripts/PreCompile.sh b/tools/tgs4_scripts/PreCompile.sh index ef16cdd900c..cc74790c307 100755 --- a/tools/tgs4_scripts/PreCompile.sh +++ b/tools/tgs4_scripts/PreCompile.sh @@ -1,7 +1,7 @@ #!/bin/bash # REPO MAINTAINERS: KEEP CHANGES TO THIS IN SYNC WITH /tools/LinuxOneShot/SetupProgram/PreCompile.sh - +# No ~mso set -e set -x @@ -42,21 +42,25 @@ if ! ( [ -x "$has_git" ] && [ -x "$has_grep" ] && [ -f "/usr/lib/i386-linux-gnu/ sudo rm -rf /var/lib/apt/lists/* fi fi - +dpkg --add-architecture i386 +apt-get update +#apt-get upgrade -y +apt-get install -y lib32z1 pkg-config libssl-dev:i386 libssl-dev #update rust-g if [ ! -d "rust-g" ]; then echo "Cloning rust-g..." git clone https://github.com/tgstation/rust-g cd rust-g - rustup target add i686-unknown-linux-gnu + ~/.cargo/bin/rustup target add i686-unknown-linux-gnu else echo "Fetching rust-g..." cd rust-g git fetch + ~/.cargo/bin/rustup target add i686-unknown-linux-gnu fi echo "Deploying rust-g..." git checkout "$RUST_G_VERSION" ~/.cargo/bin/cargo build --release --target=i686-unknown-linux-gnu -mv target/release/librust_g.so "$1/rust_g" +mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/rust_g" cd ..