mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
Add user agent string to BYOND download requests (#91101)
## About The Pull Request Someone in the BYOND discord said that they were able to fix their CI script by making sure the request had a user agent attached, and lummox said that BYOND suffered a DDoS yesterday so the failures are probably anti-bot measures. ## Why It's Good For The Game Fix CI mayhaps ## Changelog N/A
This commit is contained in:
@@ -20,7 +20,7 @@ RUN apt-get install -y --no-install-recommends \
|
||||
COPY dependencies.sh .
|
||||
|
||||
RUN . ./dependencies.sh \
|
||||
&& curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip \
|
||||
&& curl -H "User-Agent: tgstation/1.0 CI Script" "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip \
|
||||
&& unzip byond.zip \
|
||||
&& cd byond \
|
||||
&& sed -i 's|install:|&\n\tmkdir -p $(MAN_DIR)/man6|' Makefile \
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -e
|
||||
source dependencies.sh
|
||||
echo "Downloading BYOND version $BYOND_MAJOR.$BYOND_MINOR"
|
||||
curl "http://www.byond.com/download/build/$BYOND_MAJOR/$BYOND_MAJOR.${BYOND_MINOR}_byond.zip" -o C:/byond.zip
|
||||
curl -H "User-Agent: tgstation/1.0 CI Script" "http://www.byond.com/download/build/$BYOND_MAJOR/$BYOND_MAJOR.${BYOND_MINOR}_byond.zip" -o C:/byond.zip
|
||||
|
||||
@@ -14,7 +14,7 @@ else
|
||||
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
|
||||
curl -H "User-Agent: tgstation/1.0 CI Script" "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
|
||||
|
||||
Reference in New Issue
Block a user