mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
* feat: Add Dockerfile * fix: Download latest version and not a fixed one Using jq we can query the appvoyor api to get the latest jobId
12 lines
No EOL
387 B
Bash
12 lines
No EOL
387 B
Bash
#!/bin/sh
|
|
|
|
cd /opt/data || exit 1
|
|
|
|
# Get latest Job ID
|
|
JOB_ID=$(curl -L https://ci.appveyor.com/api/projects/ORelio/minecraft-console-client | jq -r .build.jobs[0].jobId)
|
|
|
|
# Download latest version
|
|
curl -L https://ci.appveyor.com/api/buildjobs/"$JOB_ID"/artifacts/MinecraftClient%2Fbin%2FRelease%2FMinecraftClient.exe --output MinecraftClient.exe
|
|
|
|
# Start Client
|
|
mono MinecraftClient.exe |