mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
scripts: flatpak: use relative paths as RoDir doesn't allow absolute paths for now
This commit is contained in:
parent
a610b1545b
commit
34b0cdc125
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
echo "Xash3D FWGS installed as Flatpak."
|
echo "Xash3D FWGS installed as Flatpak."
|
||||||
|
|
||||||
|
export XASH3D_BASEDIR="$HOME/.xash/"
|
||||||
|
mkdir -p $XASH3D_BASEDIR
|
||||||
|
cd $XASH3D_BASEDIR
|
||||||
|
echo "Base directory is $XASH3D_BASEDIR"
|
||||||
|
|
||||||
# TODO: detect by libraryfolders.vdf and installed apps
|
# TODO: detect by libraryfolders.vdf and installed apps
|
||||||
HALFLIFESTEAMDIRS="$HOME/.local/share/Steam/steamapps/common/Half-Life $HOME/.steam/steam/steamapps/common/Half-Life"
|
HALFLIFESTEAMDIRS="../.local/share/Steam/steamapps/common/Half-Life ../.steam/steam/steamapps/common/Half-Life"
|
||||||
|
|
||||||
for i in $HALFLIFESTEAMDIRS; do
|
for i in $HALFLIFESTEAMDIRS; do
|
||||||
# echo $i
|
# echo $i
|
||||||
@ -14,11 +19,6 @@ for i in $HALFLIFESTEAMDIRS; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
XASHDATADIR="$HOME/.xash/"
|
|
||||||
|
|
||||||
mkdir -p $XASHDATADIR
|
|
||||||
export XASH3D_BASEDIR="$XASHDATADIR"
|
|
||||||
echo "Base directory is $XASH3D_BASEDIR"
|
|
||||||
|
|
||||||
export XASH3D_EXTRAS_PAK1=/app/share/xash3d/valve/extras.pk3
|
export XASH3D_EXTRAS_PAK1=/app/share/xash3d/valve/extras.pk3
|
||||||
exec $DEBUGGER /app/lib32/xash3d/xash3d "$@"
|
exec $DEBUGGER /app/lib32/xash3d/xash3d "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user