mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
* Removes old UT definition files (drone/travis) * Adds concurrency definitions to the workflows * Changes our workflows to be more in line with what /tg does * Adds a workflow to build/commit TGUI * Adds a workflow to build/commit changelogs Add python version to dependencies.sh Fix dme errors Removes a bunch of not included files Cache Opendream and add directory to check_grep.py Co-authored-by: Werner <Arrow768@users.noreply.github.com>
25 lines
672 B
Bash
25 lines
672 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# BYOND_MAJOR and BYOND_MINOR can be explicitly set, such as in alt_byond_versions.txt
|
|
if [ -z "${BYOND_MAJOR+x}" ]; then
|
|
source dependencies.sh
|
|
fi
|
|
|
|
if [ -d "$HOME/BYOND/byond/bin" ] && grep -Fxq "${BYOND_MAJOR}.${BYOND_MINOR}" $HOME/BYOND/version.txt;
|
|
then
|
|
echo "Using cached directory."
|
|
else
|
|
echo "Setting up BYOND."
|
|
rm -rf "$HOME/BYOND"
|
|
mkdir -p "$HOME/BYOND"
|
|
cd "$HOME/BYOND"
|
|
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
|
unzip byond.zip
|
|
rm byond.zip
|
|
cd byond
|
|
make here
|
|
echo "$BYOND_MAJOR.$BYOND_MINOR" > "$HOME/BYOND/version.txt"
|
|
cd ~/
|
|
fi
|