1
0

Added easy installation method for Linux.

This commit is contained in:
Alexander Harkness 2014-10-11 21:31:49 +01:00
parent 2bfe7b76a1
commit b19742fe5a

17
easyinstall.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
PLATFORM=$(uname -m)
echo "Identifying platform: $PLATFORM"
case $PLATFORM in
"i686") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x86/lastSuccessfulBuild/artifact/MCServer.tar" ;;
"x86_64") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20x64/lastSuccessfulBuild/artifact/MCServer.tar" ;;
# Assume that all arm devices are a raspi for now.
"arm*") DOWNLOADURL="http://builds.cuberite.org/job/MCServer%20Linux%20armhf/lastSuccessfulBuild/artifact/MCServer.tar"
esac
echo "Downloading precompiled binaries."
curl -s $DOWNLOADURL | tar -xzf -
echo "Done."
echo "MCServer is now installed, run using 'cd MCServer; ./MCServer'."