MCGalaxy
MCGalaxy copied to clipboard
Request compiled releases as tar.gz files too
That way Linux hosting can use normally installed tools and doesn't have to make other arrangements to uncompress (or compile) the distribution.
docker run --rm -it -u 1000 -v mcgalaxy:/data -p 25565:25565 mono mono /data/MCGalaxyCLI.exe
URL="https://github.com/UnknownShadow200/MCGalaxy/releases/download/1.9.4.0/mcgalaxy_1.9.4.0.tar.gz"
docker run --rm -it -u 1000 -v mcgalaxy:/data mono bash -c "curl -L '$URL' | tar -C /data xf -"
docker run --rm -it -v mcgalaxy:/data mono chown -R 1000:1000 /data
docker run --rm -it -u 1000 -v mcgalaxy:/data -p 25565:25565 mono bash -c '
[ -f /data/MCGalaxyCLI.exe ] || {
set -e
cd /data
curl -L -o mcgalaxy.zip https://github.com/UnknownShadow200/MCGalaxy/releases/download/1.9.4.0/mcgalaxy_1.9.4.0.zip
curl -L -o unzip.cs https://github.com/icsharpcode/SharpZipLib/raw/master/samples/ICSharpCode.SharpZipLib.Samples/cs/unzipfile/UnZipFile.cs
mcs -warn:1 -r:ICSharpCode.SharpZipLib unzip.cs
mono unzip.exe mcgalaxy.zip
}
exec mono /data/MCGalaxyCLI.exe'
docker run --rm -it -u 1000 -v mcgalaxy:/data mono bash
Currently I do releases manually, so this might be something to revisit when releases are eventually automated instead