Skip to content

Commit 2dfec8b

Browse files
committed
Docker: Update start-latest.sh
Download MinecraftClient.exe from GitHub instead of AppVeyor
1 parent 72bb4a0 commit 2dfec8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Docker/start-latest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
cd /opt/data || exit 1
44

5-
# Get latest Job ID
6-
JOB_ID=$(curl -L https://ci.appveyor.com/api/projects/ORelio/minecraft-console-client | jq -r .build.jobs[0].jobId)
5+
# Get latest release tag
6+
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep location: | cut -d/ -f8)
77

88
# Download latest version
9-
curl -L https://ci.appveyor.com/api/buildjobs/"$JOB_ID"/artifacts/MinecraftClient%2Fbin%2FRelease%2FMinecraftClient.exe --output MinecraftClient.exe
9+
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
1010

1111
# Start Client
1212
mono MinecraftClient.exe

0 commit comments

Comments
 (0)