mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-30 11:12:43 +00:00
* Fixes errors when running dependencies.sh outside github * Adds PreCOmpile/InstallDeps/WatchdogLaunch Script heavilybased on tgs versions * removes tgui artifacts -> using server side build script instead * removes librust_g.so -> using server side build script instead * adds .tgs.yml * Bump Flyway Version Co-authored-by: Werner <Arrow768@users.noreply.github.com>
33 lines
946 B
Bash
Executable File
33 lines
946 B
Bash
Executable File
|
|
#find out what we have (+e is important for this)
|
|
set +e
|
|
has_git="$(command -v git)"
|
|
has_curl="$(command -v curl)"
|
|
has_cargo="$(command -v ~/.cargo/bin/cargo)"
|
|
has_sudo="$(command -v sudo)"
|
|
has_pip3="$(command -v pip3)"
|
|
set -e
|
|
set -x
|
|
|
|
# apt packages, libssl needed by rust-g but not included in TGS barebones install
|
|
if ! ( [ -x "$has_git" ] && [ -x "$has_curl" ] && [ -f "/usr/lib/i386-linux-gnu/libssl.so" ] ); then
|
|
echo "Installing apt dependencies..."
|
|
if ! [ -x "$has_sudo" ]; then
|
|
dpkg --add-architecture i386
|
|
apt-get update
|
|
apt-get install -y lib32z1 git pkg-config libssl-dev:i386 libssl-dev zlib1g-dev:i386 curl
|
|
else
|
|
sudo dpkg --add-architecture i386
|
|
sudo apt-get update
|
|
sudo apt-get install -y lib32z1 git pkg-config libssl-dev:i386 libssl-dev zlib1g-dev:i386 curl
|
|
fi
|
|
fi
|
|
|
|
# install cargo if needed
|
|
if ! [ -x "$has_cargo" ]; then
|
|
echo "Installing rust..."
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
. ~/.profile
|
|
fi
|
|
|