[skip-ci] Add the ability to be able to use different platforms with the example Dockerfile (#2723)

This commit is contained in:
Zorua162 2024-04-15 07:48:04 +01:00 committed by GitHub
parent 2fe376e7ca
commit 403284cc53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -2,6 +2,8 @@
cd /opt/data || exit 1
echo "platform is ${MCC_PLATFORM}"
if [ -e "./MinecraftClient" -a -n "$MCC_SKIP_REDOWNLOAD" ]; then
echo "Skip re-download MinecraftClient"
else
@ -15,7 +17,7 @@ else
echo "Donwloading MinecraftClient for ${RELEASE_TAG}"
# Download the specified build or the latest one
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient-linux.zip --output MinecraftClient-linux.zip
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient-${MCC_PLATFORM:=linux}.zip --output MinecraftClient-linux.zip
# Unzip it
unzip MinecraftClient-linux.zip