2021-03-14 11:14:13 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
cd /opt/data || exit 1
|
|
|
|
|
|
2022-01-26 13:19:53 +01:00
|
|
|
# Get latest release tag
|
2022-02-05 23:26:54 +01:00
|
|
|
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | tr -d '\r' | cut -d/ -f8)
|
2021-03-14 11:14:13 +01:00
|
|
|
|
|
|
|
|
# Download latest version
|
2022-01-26 13:19:53 +01:00
|
|
|
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
|
2021-03-14 11:14:13 +01:00
|
|
|
|
|
|
|
|
# Start Client
|
2022-02-05 23:26:54 +01:00
|
|
|
mono MinecraftClient.exe
|