Created
December 6, 2012 16:04
-
-
Save sheldonh/4225603 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
| # Assumes the launcher is in ~/.minecraft/minecraft.jar | |
| version=2.8.5 | |
| source=http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%20$version/lwjgl-$version.zip/download | |
| cd ~/.minecraft || exit 1 | |
| checksum=$(md5sum bin/lwjgl.jar | awk '{print $1}') | |
| if [ "$checksum" = '7a07c4285fa9a6b204ba59f011f1cd77' -o "$FORCE_LWJGL" = '1' ]; then | |
| wget -O lwjgl-$version.zip $source | |
| unzip lwjgl-$version.zip | |
| for i in lwjgl-$version/jar/{jinput,lwjgl,lwjgl_util}.jar; do | |
| cp -v $i bin/ | |
| done | |
| for i in lwjgl-$version/native/linux/lib*.so; do | |
| cp -v $i bin/natives/ | |
| done | |
| fi | |
| java -jar minecraft.jar &>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment