Created
December 18, 2012 18:15
-
-
Save jlitewski/4330506 to your computer and use it in GitHub Desktop.
Feed the Beast launcher script for the ftb-launcher AUR package
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 | |
# Check to see if the directory exists | |
if [ ! -d $HOME/.ftb ] | |
then | |
mkdir $HOME/.ftb | |
fi | |
# Check to make sure the launcher is in the directory | |
if [ ! -f $HOME/.ftb/FTB_Launcher.jar ] | |
then | |
wget --directory-prefix=$HOME/.ftb/ http://www.creeperrepo.net/direct/FTB2/95cc858d6f828e40adb618e12a68d39e/FTB_Launcher.jar | |
fi | |
# Fix for users of special IM modules | |
unset XMODIFIERS GTK_IM_MODULE QT_IM_MODULE | |
# The actual code to run the launcher | |
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/amd64/:$JAVA_HOME/lib/i386/:$JAVA_HOME/jre/lib/amd64/:$JAVA_HOME/jre/lib/i386/" exec java -Xmx1024M -Xms512M -jar $HOME/.ftb/FTB_Launcher.jar $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment