Files
2019-01-31 02:40:31 +01:00

19 lines
542 B
Bash

#!/bin/sh
# Use this script in bundle to run game
# ----------------------------------------------------------------------------
# Copyright (c) 2015 under GNU GPL v3.0+
export LANG=C
SCRIPTDIR="$(cd "$(dirname "$0")"; pwd)"
if [ -d "$SCRIPTDIR/lib" ]; then
export DYLD_LIBRARY_PATH="$SCRIPTDIR/lib"
binary_dir_path="$SCRIPTDIR"
else
export DYLD_LIBRARY_PATH="$SCRIPTDIR/../Frameworks"
binary_dir_path="$SCRIPTDIR/../Resources/glest-game"
fi
export PATH="$binary_dir_path:$PATH"
exec "$binary_dir_path/glest" "$@"
exit "$?"