public
Last active

Script to automate patching LWJGL in ~/.minecraft

  • Download Gist
minecraft-lwgjl-patch.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash
 
VERSION="2.9.0"
 
mkdir -p ~/.minecraft/bin/natives
 
wget -c "http://iweb.dl.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%20${VERSION}/lwjgl-${VERSION}.zip"
 
unzip "./lwjgl-${VERSION}.zip"
 
cp "./lwjgl-${VERSION}/native/linux/"* ~/.minecraft/bin/natives
cp "./lwjgl-${VERSION}/jar/lwjgl.jar" "./lwjgl-${VERSION}/jar/lwjgl_util.jar" "./lwjgl-${VERSION}/jar/jinput.jar" ~/.minecraft/bin
 
rm -rf "./lwjgl-${VERSION}/" "./lwjgl-${VERSION}.zip"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.