Skip to content

Commit

Permalink
Add extools compilation to the TGS4 precompile scripts for linux (tgs…
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbah authored Apr 3, 2021
1 parent 118a3f9 commit f12b6ff
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions tools/tgs4_scripts/PreCompile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ if ! ( [ -x "$has_git" ] && [ -x "$has_grep" ] && [ -f "/usr/lib/i386-linux-gnu/
fi
dpkg --add-architecture i386
apt-get update
#apt-get upgrade -y
apt-get install -y lib32z1 pkg-config libssl-dev:i386 libssl-dev libssl1.1:i386
#update rust-g
# update rust-g
if [ ! -d "rust-g" ]; then
echo "Cloning rust-g..."
git clone https://github.com/tgstation/rust-g
Expand All @@ -65,6 +64,32 @@ env PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --target=i686-un
mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/librust_g.so"
cd ..

# get dependencies for extools
apt-get install -y cmake build-essential gcc-multilib g++-multilib cmake wget

# update extools
if [ ! -d "extools" ]; then
echo "Cloning extools..."
git clone https://github.com/MCHSL/extools
cd extools/byond-extools
else
echo "Fetching extools..."
cd extools/byond-extools
git fetch
fi

echo "Deploying extools..."
git checkout "$EXTOOLS_VERSION"
if [ -d "build" ]; then
rm -R build
fi
mkdir build
cd build
cmake ..
make
mv libbyond-extools.so "$1/libbyond-extools.so"
cd ../../..

# compile tgui
echo "Compiling tgui..."
cd "$1"
Expand Down

0 comments on commit f12b6ff

Please sign in to comment.