Minecraft-Console-Client/Docker/start-latest.sh
Tan to the Dashi fd7a84bc91
Add Dockerfile (#1504)
* 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
2021-03-14 11:14:13 +01:00

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