mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 03:09:49 +02:00
19 lines
542 B
Bash
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 "$?"
|