Skip to content

Instantly share code, notes, and snippets.

@lithid
Created May 19, 2012 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lithid/2732343 to your computer and use it in GitHub Desktop.
Save lithid/2732343 to your computer and use it in GitHub Desktop.
Download updated lwjgl library for minecraft
#!/bin/bash
# Written by Lithid
URL="http://downloads.sourceforge.net/project/java-game-lib/Official%20Releases/LWJGL%202.6/lwjgl-2.6.zip"
FILE="lwjgl-2.6.zip"
FOLDER="lwjgl-2.6"
DIR="$HOME/.minecraft"
if [ -d $DIR ]; then
cd $DIR
wget $URL
unzip $FILE
cp $FOLDER/jar/* $DIR/bin/
cp $FOLDER/native/linux/* $DIR/bin/natives/
rm -rf $FILE $FOLDER
else
echo "Your minecraft config dir doesn't exist, can't do anything to help. Sorry"
exit 1
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment