diff options
author | Alexander Harkness <bearbin@gmail.com> | 2014-10-11 22:31:49 +0200 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2014-10-11 22:31:49 +0200 |
commit | b19742fe5a0a665213e9906c697c8a25613c6442 (patch) | |
tree | f35d1da64bc52ad5c575bc0cbf97d673c76f929a | |
parent | Merge pull request #1261 from mc-server/issue850 (diff) | |
download | cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar.gz cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar.bz2 cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar.lz cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar.xz cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.tar.zst cuberite-b19742fe5a0a665213e9906c697c8a25613c6442.zip |
-rwxr-xr-x | easyinstall.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/easyinstall.sh b/easyinstall.sh new file mode 100755 index 000000000..77ffb2290 --- /dev/null +++ b/easyinstall.sh @@ -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'." |