test java update

This commit is contained in:
2024-06-18 17:12:09 -07:00
parent 7e2657495a
commit c4577b9b92
2 changed files with 11 additions and 2 deletions

View File

@@ -5,6 +5,12 @@
# Display setup
#export DISPLAY=0
https://download.oracle.com/java/22/latest/jdk-22_linux-x64_bin.deb
JAVA_DOWNLOAD=https://download.java.net/java/GA/jdk22.0.1/c7ec1332f7bb44aeba2eb341ae18aca4/8/GPL/openjdk-22.0.1_linux-x64_bin.tar.gz
curl -s $JAVA_DOWNLOAD
tar xvf openjdk-13*_bin.tar.gz
VERSION_CHECK=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
MC_SERVER_FILE=$(curl -s $VERSION_CHECK | jq --raw-output '.downloads.server.url')
MC_RUN_FILE=https://gitlab.fithwum.tech/fithwum/minecraft/-/raw/master/testing/run.sh