File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 10
10
# Use the provided version tag or get the latest release tag
11
11
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)}
12
12
13
+ # Taken from https://stackoverflow.com/a/70369688
14
+ ARCH=$( arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/)
15
+
13
16
# Delete the old build
14
- [ -e MinecraftClient-linux.zip ] && rm -- MinecraftClient-linux.zip
15
17
[ -e MinecraftClient ] && rm -- MinecraftClient
16
18
17
- echo " Donwloading MinecraftClient for ${RELEASE_TAG} "
19
+ echo " Donwloading MinecraftClient for ${RELEASE_TAG} - ${ARCH} "
18
20
19
21
# 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
27
23
fi
28
24
29
25
# Set Executable
You can’t perform that action at this time.
0 commit comments