Browse Source

appimage: use APPDIR enviroment variable to determine application directory

pull/2/head
Alibek Omarov 6 years ago committed by GitHub
parent
commit
96c4044a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      scripts/build_appimage.sh

7
scripts/build_appimage.sh

@ -19,13 +19,12 @@ cat > $APPDIR/AppRun << 'EOF' @@ -19,13 +19,12 @@ cat > $APPDIR/AppRun << 'EOF'
echo "Xash3D FWGS installed as AppImage."
ENGINEROOT=$(dirname -- "$(readlink -f -- "$0")")
if [ "$XASH3D_BASEDIR" = "" ]; then
export XASH3D_BASEDIR=$PWD
fi
export XASH3D_EXTRAS_PAK1="${ENGINEROOT}"/extras.pak
export LD_LIBRARY_PATH="${ENGINEROOT}":$LD_LIBRARY_PATH
${DEBUGGER} "${ENGINEROOT}"/xash3d "$@"
export XASH3D_EXTRAS_PAK1="${APPDIR}"/extras.pak
export LD_LIBRARY_PATH="${APPDIR}":$LD_LIBRARY_PATH
${DEBUGGER} "${APPDIR}"/xash3d "$@"
exit $?
EOF

Loading…
Cancel
Save