Minecraft .jar launcher old 201810/27/2023 ![]() ![]() #Get the version specific json file to parse ![]() VER=$(jq -r '.versions.id' /minecraft/temp/version_manifest.json) URL=$(jq -r '.versions.url' /minecraft/temp/version_manifest.json) #Parse the version and version.json files into variables # Get the version_manifest file from Mojang # Symbolically server.jar link to the latest version. # Only download latest version if target filename does not exist.ĭeclare -r manifest="/tmp/manifest.$latest_version.json"Ĭurl -Ss -o "$manifest" "$latest_manifest_url"ĭeclare -r jar_url=$(jq -r "." "$manifest")Įcho "manifest url: $latest_manifest_url"ĭeclare -r jar="minecraft_server.$latest_version.jar" This file includes the following (as of this answer): "latest": )) \ I found the file they use to work out what the current version is and the URL to it: I recently decompiled the launcher for this very reason, to manage automatic updates for my server wrapper with their new naming convention.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |