Personal fork of Cuberite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

# NOTE: looks for this file in order to determine if this is the Cuberite folder.
# Please modify if you want to rename or remove this file.
# This file was chosen arbitrarily and it is a good enough indicator that we are in the Cuberite folder.
set -e
KERNEL=$(uname -s)
echo "Identifying kernel: $KERNEL"
if [ "$KERNEL" = "Linux" ]; then
PLATFORM=$(uname -m)
echo "Identifying platform: $PLATFORM"
case $PLATFORM in
"i686") DOWNLOADURL="" ;;
"x86_64") DOWNLOADURL="" ;;
# Assume that all arm devices are a raspi for now.
arm*) DOWNLOADURL="" ;;
# Allow install on Raspberry Pi 4 Ubuntu x64 (AArch64) using the ARM builds.
"aarch64") DOWNLOADURL=""
elif [ "$KERNEL" = "Darwin" ]; then
# All Darwins we care about are x86_64
#elif [ "$KERNEL" = "FreeBSD" ]; then
echo "Unsupported kernel."
exit 1
echo "Downloading precompiled binaries."
curl -Ls $DOWNLOADURL | tar -xzf -
echo "Done."
echo "Cuberite is now installed, run using 'cd Server; ./Cuberite'."