#!/bin/sh # Copyright justjavac. All rights reserved. MIT license. # https://github.com/justjavac/deno_deploy_minecraft_bedrock # # curl -fsSL https://bedrock.deno.dev | sh # set -e if ! command -v unzip >/dev/null; then echo "Error: unzip is required to install Minecraft." 1>&2 exit 1 fi curl --fail --location --progress-bar --output bedrock-server-undefined.zip undefined unzip -d ./bedrock -o bedrock-server-undefined.zip chmod +x ./bedrock/bedrock_server # rm bedrock-server-undefined.zip echo "cd `pwd`/bedrock" > start.sh echo 'LD_LIBRARY_PATH=. ./bedrock_server' >> start.sh chmod +x ./start.sh echo "Minecraft was installed successfully." echo " Run './start.sh' to get started."