https://forum.ubuntu-fr.org/viewtopic.php?id=1953051

Found this script, make it easy to see was must be added to GDP

"convert /usr/local/games/quake4/q4icon.bmp 
/home/marc/.local/share/icons/hicolor/48x48/apps/q4icon.png":    "It works for 
me (tm)" ;-)


------------------

#!/bin/sh
echo "Steam username ?"
read USER
echo "Steam password ?"
read PASS
if [ -e ~/steamcmd/steamcmd.sh ]
then
echo "steamcmd found"
else
        sudo apt-get install lib32gcc1
        mkdir ~/steamcmd
        cd ~/steamcmd
        wget 
https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
        tar -xvzf steamcmd_linux.tar.gz
        rm steamcmd_linux.tar.gz
fi

for a in "$@"
do
case $a in
quake|quake1|q1)
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2310 +quit
#QUAKE Mission Pack 2: Dissolution of Eternity
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 9030 +quit
#QUAKE Mission Pack 1: Scourge of Armagon
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 9040 +quit
which game-data-packager > /dev/null||sudo apt-get install game-data-packager
game-data-packager quake
sudo dpkg -i quake-*all.deb
which quake > /dev/null||sudo apt-get install quake
;;
quake2|q2)
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2320 +quit
#QUAKE II Mission Pack: The Reckoning
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2330 +quit
#QUAKE II Mission Pack: Ground Zero
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2340 +quit
which game-data-packager > /dev/null||sudo apt-get install game-data-packager
game-data-packager quake2
sudo dpkg -i quake2-*all.deb
which quake2 > /dev/null||sudo apt-get install quake2
;;
quake3|q3|quake3arena|q3a|quake3teamarena|q3ta|teamarena|missionpack)
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2200 +quit
#QUAKE III: Team Arena
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2350 +quit
which game-data-packager > /dev/null||sudo apt-get install game-data-packager
game-data-packager quake3
sudo dpkg -i quake3-*all.deb
which quake3 > /dev/null||sudo apt-get install quake3
#high res textures
mkdir -p ~/.q3a/baseq3
[ -e xcsv_hires.zip ]||wget http://ioquake3.org/files/xcsv_hires.zip
unzip xcsv_hires.zip xcsv_bq3hi-res.pk3
mv xcsv_bq3hi-res.pk3 ~/.q3a/baseq3
;;
quake4|q4)
~/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType windows +login "$USER" 
"$PASS" +app_update 2210 +quit
mkdir -p ~/.quake4/q4base
cp ~/.steam/steam/steamapps/common/Quake\ 4/q4base/*.pk4 ~/.quake4/q4base
cp ~/.steam/steam/steamapps/common/Quake\ 4/q4base/quake4key ~/.quake4/q4base
[ -e quake4-linux-1.4.2.x86.run ]||(wget -c 
ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.4.2.x86.run&&chmod 
+x quake4-linux-1.4.2.x86.run)
sudo ./quake4-linux-1.4.2.x86.run
convert /usr/local/games/quake4/q4icon.bmp 
/home/marc/.local/share/icons/hicolor/48x48/apps/q4icon.png
echo "[Desktop Entry]
Version=1.0
Name=Quake 4
Exec=/usr/local/games/quake4/quake4
Icon=q4icon
Comment=Play Quake 4
Terminal=false
Type=Application
Categories=Game;ActionGame;
Keywords=first person shooter;" > ~/.local/share/applications/quake4.desktop
;;
*)
echo "not argument given"
;;
esac
done

Reply via email to