From 00ddd95c27c5789587957db700f15f08e2e22c63 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 5 Feb 2023 02:25:21 +0300 Subject: [PATCH] scripts: flatpak: try to add ourselves to desktop menu entries --- scripts/flatpak/su.xash.Engine.Compat.i386.desktop | 10 ++++++++++ scripts/flatpak/su.xash.Engine.Compat.i386.yml | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/flatpak/su.xash.Engine.Compat.i386.desktop diff --git a/scripts/flatpak/su.xash.Engine.Compat.i386.desktop b/scripts/flatpak/su.xash.Engine.Compat.i386.desktop new file mode 100644 index 00000000..cec00eca --- /dev/null +++ b/scripts/flatpak/su.xash.Engine.Compat.i386.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Categories=Game;Shooter; +Comment=Half-Life compatible game engine +Exec= +Icon=su.xash.Engine.Compat.i386 +Keywords=first;person;shooter;multiplayer;half-life;halflife;singleplayer; +Name=Xash3D FWGS +PrefersNonDefaultGPU=true +Terminal=false +Type=Application diff --git a/scripts/flatpak/su.xash.Engine.Compat.i386.yml b/scripts/flatpak/su.xash.Engine.Compat.i386.yml index a2ac1c75..06b3a205 100644 --- a/scripts/flatpak/su.xash.Engine.Compat.i386.yml +++ b/scripts/flatpak/su.xash.Engine.Compat.i386.yml @@ -76,7 +76,11 @@ modules: python waf build python waf install --destdir=/ mkdir -p /app/bin + mkdir -p /app/share/icons/hicolor/256x256/apps/ + mkdir -p /app/share/applications install -m 0755 scripts/flatpak/run.sh /app/bin/run.sh + install -m 0644 game_launch/icon-xash-material.png /app/share/icons/hicolor/256x256/apps/su.xash.Engine.Compat.i386.png + install -m 0644 scripts/flatpak/su.xash.Engine.Compat.i386.desktop /app/share/applications/su.xash.Engine.Compat.i386.desktop sources: - type: dir path: ../../