代码拉取完成,页面将自动刷新
#!/bin/sh
{
# NOTE: compile.sh looks for this file in order to determine if this is the Cuberite folder.
# Please modify compile.sh 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="https://download.cuberite.org/linux-i686/Cuberite.tar.gz" ;;
"x86_64") DOWNLOADURL="https://download.cuberite.org/linux-x86_64/Cuberite.tar.gz" ;;
# Assume that all arm devices are a raspi for now.
arm*) DOWNLOADURL="https://download.cuberite.org/linux-armhf-raspbian/Cuberite.tar.gz" ;;
# Allow install on Raspberry Pi 4 Ubuntu x64 (AArch64) using the ARM builds.
"aarch64") DOWNLOADURL="https://download.cuberite.org/linux-aarch64/Cuberite.tar.gz"
esac
elif [ "$KERNEL" = "Darwin" ]; then
# All Darwins we care about are x86_64
DOWNLOADURL="https://download.cuberite.org/darwin-x86_64/Cuberite.tar.gz"
#elif [ "$KERNEL" = "FreeBSD" ]; then
# DOWNLOADURL="https://builds.cuberite.org/job/Cuberite%20FreeBSD%20x64%20Master/lastSuccessfulBuild/artifact/Cuberite.tar.gz"
else
echo "Unsupported kernel."
exit 1
fi
echo "Downloading precompiled binaries."
curl -Ls $DOWNLOADURL | tar -xzf -
echo "Done."
echo "Cuberite is now installed, run using 'cd Server; ./Cuberite'."
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。