Skip to content

Commit 8bdb20a

Browse files
authored
[skip ci] Update docker image to use updated releases
1 parent ca966a4 commit 8bdb20a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Docker/start-latest.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,16 @@ else
1010
# Use the provided version tag or get the latest release tag
1111
RELEASE_TAG=${MCC_VERSION:-$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | tr -d '\r' | cut -d/ -f8)}
1212

13+
# Taken from https://stackoverflow.com/a/70369688
14+
ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/)
15+
1316
# Delete the old build
14-
[ -e MinecraftClient-linux.zip ] && rm -- MinecraftClient-linux.zip
1517
[ -e MinecraftClient ] && rm -- MinecraftClient
1618

17-
echo "Donwloading MinecraftClient for ${RELEASE_TAG}"
19+
echo "Donwloading MinecraftClient for ${RELEASE_TAG}-${ARCH}"
1820

1921
# Download the specified build or the latest one
20-
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient-${MCC_PLATFORM:=linux}.zip --output MinecraftClient-linux.zip
21-
22-
# Unzip it
23-
unzip MinecraftClient-linux.zip
24-
25-
# Remove the ZIP
26-
rm -- MinecraftClient-linux.zip
22+
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient-${RELEASE_TAG}-${MCC_PLATFORM:=linux}-${ARCH} --output MinecraftClient
2723
fi
2824

2925
# Set Executable

0 commit comments

Comments
 (0)