mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
549313bd7c
* Patch for byond 1664
* Rust
* Rust
* Adding librust_g.so to LFS
* librust_g.so: convert to Git LFS
* librust_g.so: convert to Git LFS
* Migrate
* Updated dependencies.sh & Fallback mirror for BYOND binaries
* Checkout with LFS
* Pulling LFS files
* Verbose logging
* More logging
* Reverts verbose logging & adds step for byond dependencies
* 🐚
* 32
* Replaces LFS with latest binary of rust-g release
* Removes wrong file
31 lines
963 B
Bash
Executable File
31 lines
963 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
source dependencies.sh
|
|
|
|
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 -H "User-Agent: vstation/1.0 CI Script" "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
|
if [ $? -ne 0 ] || !(unzip -qt byond.zip); then
|
|
echo "Attempting fallback mirror..."
|
|
rm byond.zip
|
|
curl -H "User-Agent: vstation/1.0 CI Script" "https://spacestation13.github.io/byond-builds/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
|
if [ $? -ne 0 ] || !(unzip -qt byond.zip); then
|
|
echo "Failure!"
|
|
exit 1
|
|
fi
|
|
fi
|
|
unzip byond.zip
|
|
rm byond.zip
|
|
cd byond
|
|
make here
|
|
echo "$BYOND_MAJOR.$BYOND_MINOR" > "$HOME/BYOND/version.txt"
|
|
cd ~/
|
|
fi
|