Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Script to automate patching LWJGL in ~/.minecraft
#!/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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.