-
-
Save fasterthanlime/c4be29f001ae8b6390af to your computer and use it in GitHub Desktop.
OpenHexagon launcher by flibitijibibo
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 | |
# Open Hexagon Shell Script | |
# Written by Ethan "flibitijibibo" Lee | |
# Move to script's directory | |
cd "`dirname "$0"`" | |
# Get the kernel/architecture information | |
UNAME=`uname` | |
ARCH=`uname -m` | |
# Set the libpath and pick the proper binary | |
if [ "$UNAME" == "Darwin" ]; then | |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/ | |
./osx/openhexagon.osx $@ | |
elif [ "$UNAME" == "Linux" ]; then | |
if [ "$ARCH" == "x86_64" ]; then | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/ | |
./x86_64/openhexagon.x86_64 $@ | |
else | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/ | |
./x86/openhexagon.x86 $@ | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment