Replace downloads links with new redirect server links
This commit is contained in:
parent
782619e3f8
commit
8154bde116
@ -17,22 +17,22 @@ if [ "$KERNEL" = "Linux" ]; then
|
|||||||
echo "Identifying platform: $PLATFORM"
|
echo "Identifying platform: $PLATFORM"
|
||||||
|
|
||||||
case $PLATFORM in
|
case $PLATFORM in
|
||||||
"i686") DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20Linux%20x86%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz" ;;
|
"i686") DOWNLOADURL="https://download.cuberite.org/linux-i686/Cuberite.tar.gz" ;;
|
||||||
"x86_64") DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20Linux%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz" ;;
|
"x86_64") DOWNLOADURL="https://download.cuberite.org/linux-x86_64/Cuberite.tar.gz" ;;
|
||||||
# Assume that all arm devices are a raspi for now.
|
# Assume that all arm devices are a raspi for now.
|
||||||
arm*) DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20Linux%20raspi-armhf%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
arm*) DOWNLOADURL="https://download.cuberite.org/linux-armhf-raspbian/Cuberite.tar.gz"
|
||||||
esac
|
esac
|
||||||
elif [ "$KERNEL" = "Darwin" ]; then
|
#elif [ "$KERNEL" = "Darwin" ]; then
|
||||||
DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20OSX%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
# DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20OSX%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
||||||
elif [ "$KERNEL" = "FreeBSD" ]; then
|
#elif [ "$KERNEL" = "FreeBSD" ]; then
|
||||||
DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20FreeBSD%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
# DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20FreeBSD%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
||||||
else
|
else
|
||||||
echo "Unsupported kernel."
|
echo "Unsupported kernel."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Downloading precompiled binaries."
|
echo "Downloading precompiled binaries."
|
||||||
curl -s $DOWNLOADURL | tar -xzf -
|
curl -Ls $DOWNLOADURL | tar -xzf -
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
echo "Cuberite is now installed, run using 'cd Server; ./Cuberite'."
|
echo "Cuberite is now installed, run using 'cd Server; ./Cuberite'."
|
||||||
|
Loading…
Reference in New Issue
Block a user