added .desktop file for client
This commit is contained in:
parent
c1a8f42a23
commit
81ab2e25e8
1 changed files with 29 additions and 12 deletions
|
@ -219,15 +219,17 @@ esac
|
|||
|
||||
|
||||
# it seems that the build actually (21.08.2022) is buggy and does not exec server.cfg by its own
|
||||
if [ "$XASH_INSTALL_TYPE" == "server" ] && [ "$XASH_INSTALL_MODE" == "install" ]
|
||||
if [ "$XASH_INSTALL_MODE" == "install" ]
|
||||
then
|
||||
case $XASH_INSTALL_TYPE in
|
||||
server)
|
||||
echo "= Creating start.sh script for dedicated server in build/result ="
|
||||
case $XASH_INSTALL_VERSION in
|
||||
0.19)
|
||||
echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh
|
||||
echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 +port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_RESULTDIR/start.sh
|
||||
;;
|
||||
0.20)
|
||||
echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_BASEDIR/result/start.sh
|
||||
echo -e "#!/bin/bash\n./xash +ip 0.0.0.0 -port $XASHDS_PORT -pingboost 1 -timeout 3 +map boot_camp +exec server.cfg" > $XASH3D_RESULTDIR/start.sh
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -235,6 +237,21 @@ then
|
|||
touch $XASH3D_RESULTDIR/valve/listip.cfg
|
||||
touch $XASH3D_RESULTDIR/valve/banned.cfg
|
||||
echo "= If you need an example config for a public server, have a look into https://github.com/FWGS/xashds-docker/tree/master/valve ="
|
||||
;;
|
||||
|
||||
client)
|
||||
echo "[Desktop Entry]
|
||||
Name=Xash3d ${XASH_INSTALL_VERSION}
|
||||
GenericName=Half-Life
|
||||
Comment=OpenSource Half-Life Engine v${XASH_INSTALL_VERSION}
|
||||
Exec=${XASH3D_RESULTDIR}/xash3d
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=false
|
||||
Categories=Game;
|
||||
X-Desktop-File-Install-Version=0.24" > $XASH3D_RESULTDIR/Xash3D_${XASH_INSTALL_VERSION}.desktop
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "= DONE! If everything went well an no errors occured you can just run your game/server from $XASH3D_BASEDIR/result/ ="
|
||||
|
|
Loading…
Reference in a new issue