2014-10-11 16:31:49 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PLATFORM=$(uname -m)
|
|
|
|
|
|
|
|
echo "Identifying platform: $PLATFORM"
|
|
|
|
case $PLATFORM in
|
2015-06-09 11:24:36 -04:00
|
|
|
"i686") DOWNLOADURL="http://builds.cuberite.org/job/Cuberite%20Linux%20x86%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz" ;;
|
|
|
|
"x86_64") DOWNLOADURL="http://builds.cuberite.org/job/Cuberite%20Linux%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz" ;;
|
2014-10-11 16:31:49 -04:00
|
|
|
# Assume that all arm devices are a raspi for now.
|
2015-06-09 11:24:36 -04:00
|
|
|
arm*) DOWNLOADURL="http://builds.cuberite.org/job/Cuberite%20Linux%20raspi-armhf%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
|
2014-10-11 16:31:49 -04:00
|
|
|
esac
|
|
|
|
|
|
|
|
echo "Downloading precompiled binaries."
|
|
|
|
curl -s $DOWNLOADURL | tar -xzf -
|
|
|
|
echo "Done."
|
|
|
|
|
2015-10-31 18:25:21 -04:00
|
|
|
echo "Cuberite is now installed, run using 'cd Server; ./Cuberite'."
|