mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
appimage: use APPDIR enviroment variable to determine application directory
This commit is contained in:
parent
3d9a97348e
commit
96c4044a6c
@ -19,13 +19,12 @@ cat > $APPDIR/AppRun << 'EOF'
|
|||||||
|
|
||||||
echo "Xash3D FWGS installed as AppImage."
|
echo "Xash3D FWGS installed as AppImage."
|
||||||
|
|
||||||
ENGINEROOT=$(dirname -- "$(readlink -f -- "$0")")
|
|
||||||
if [ "$XASH3D_BASEDIR" = "" ]; then
|
if [ "$XASH3D_BASEDIR" = "" ]; then
|
||||||
export XASH3D_BASEDIR=$PWD
|
export XASH3D_BASEDIR=$PWD
|
||||||
fi
|
fi
|
||||||
export XASH3D_EXTRAS_PAK1="${ENGINEROOT}"/extras.pak
|
export XASH3D_EXTRAS_PAK1="${APPDIR}"/extras.pak
|
||||||
export LD_LIBRARY_PATH="${ENGINEROOT}":$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH="${APPDIR}":$LD_LIBRARY_PATH
|
||||||
${DEBUGGER} "${ENGINEROOT}"/xash3d "$@"
|
${DEBUGGER} "${APPDIR}"/xash3d "$@"
|
||||||
exit $?
|
exit $?
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user