ci: rework Linux build scripts, allow crosscompiling with whatever is included in Ubuntu 20.04 (which is used on GitHub Actions now) repositories

This commit is contained in:
Alibek Omarov
2024-11-18 16:53:47 +03:00
parent fa272d9d93
commit bfb84a7ac4
5 changed files with 166 additions and 89 deletions

10
scripts/gha/linux/AppRun Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
if [ "$XASH3D_BASEDIR" = "" ]; then
export XASH3D_BASEDIR="$PWD"
fi
echo "Xash3D FWGS installed as AppImage."
echo "Base directory is $XASH3D_BASEDIR. Set XASH3D_BASEDIR environment variable to override this."
export XASH3D_EXTRAS_PAK1="${APPDIR}/valve/extras.pk3"
exec $DEBUGGER "${APPDIR}/xash3d" "$@"

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Categories=Game;Shooter;
Comment=Half-Life compatible game engine
Exec=AppRun
Icon=xash3d-fwgs
Keywords=first;person;shooter;multiplayer;half-life;halflife;singleplayer;
Name=Xash3D FWGS
# Doesn't pass validation with old desktop-file-utils
#PrefersNonDefaultGPU=true
Terminal=false
Type=Application