Minecraft-Console-Client/Docker/start-latest.sh
ORelio 2dfec8b047 Docker: Update start-latest.sh
Download MinecraftClient.exe from GitHub instead of AppVeyor
2022-01-26 13:19:56 +01:00

12 lines
No EOL
399 B
Bash

#!/bin/sh
cd /opt/data || exit 1
# Get latest release tag
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep location: | cut -d/ -f8)
# Download latest version
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
# Start Client
mono MinecraftClient.exe