summaryrefslogtreecommitdiffstats
path: root/easyinstall.sh
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-10-21 17:37:03 +0200
committerHowaner <franzi.moos@googlemail.com>2014-10-21 17:37:03 +0200
commit283eda3c4eaa37acc242ccefdb3912768a80d14b (patch)
treefe9cdd385d5687c2f8bfe55d331ead942f28e4aa /easyinstall.sh
parentLeaves are harvest-able. (diff)
parentUpdated ProtectionAreas (diff)
downloadcuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.gz
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.bz2
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.lz
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.xz
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.tar.zst
cuberite-283eda3c4eaa37acc242ccefdb3912768a80d14b.zip
Diffstat (limited to 'easyinstall.sh')
-rwxr-xr-xeasyinstall.sh17
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'."