Created
May 24, 2016 19:14
-
-
Save manuelgu/1b0ad70874012647151313629eceab58 to your computer and use it in GitHub Desktop.
Download the most recent minecraft version (snapshot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download version file | |
wget -qN https://launchermeta.mojang.com/mc/game/version_manifest.json | |
# Beautify the file | |
python -m json.tool version_manifest.json > versions.json | |
# Get the latest snapshot release | |
MCVER=`sed -n -e '/\"latest\"/,/}/ s/.*\"snapshot\": \"\([^\"]*\)\".*/\1/p' < versions.json` | |
# Download the latest snapshot release | |
wget -N https://s3.amazonaws.com/Minecraft.Download/versions/$MCVER/minecraft_server.$MCVER.jar | |
# Delete temp files | |
rm versions.json | |
rm version_manifest.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This actually helped me because I need the links to make my customized launchers