summaryrefslogblamecommitdiffstats
path: root/easyinstall.sh
blob: e2227d6fa734e54d126c4337635a4a469fa056aa (plain) (tree)
1
2
3
4
5
6
7
8
9





                                      

                                                                                                                                              
                                                          
                                                                                                                                               





                                        
                                                                      
#!/bin/sh

PLATFORM=$(uname -m)

echo "Identifying platform: $PLATFORM"
case $PLATFORM in 
	"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" ;;
	# Assume that all arm devices are a raspi for now.
	arm*) DOWNLOADURL="http://builds.cuberite.org/job/Cuberite%20Linux%20raspi-armhf%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
esac

echo "Downloading precompiled binaries."
curl -s $DOWNLOADURL | tar -xzf -
echo "Done."

echo "Cuberite is now installed, run using 'cd MCServer; ./Cuberite'."