Created
May 27, 2016 14:18
-
-
Save grapefrukt/2cebad610a79dfc5566c56a09cefdb64 to your computer and use it in GitHub Desktop.
Run script that fixes missing libraries for 32 bit builds only
This file contains 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/bash | |
# making sure we're in the correct dir | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; cd ${DIR} | |
# get the architecture | |
arch=$(uname -m) | |
# this hack is only needed on 32 bit for some reason | |
if [[ ''$arch'' == ''i686'' ]]; then | |
# make sure libraries are loaded from the local directory | |
# it's not elegant, but it works | |
export LD_LIBRARY_PATH=${DIR} | |
fi | |
# start the game | |
./rymdkapsel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment