From 5cc5dda1a7bc95e3a99aed0b7e0ac09cc1563158 Mon Sep 17 00:00:00 2001 From: Joey Riches Date: Mon, 8 Jan 2024 13:30:03 +0000 Subject: [PATCH] package/linux: Fixup metainfo to keep appstream composers happy 1. By default the .desktop file gets installed to sunshine.desktop, as such provide the launchable tag for it to help `appstream-builder` "find" the .desktop file due to the id (Sunshine.desktop) not matching. Rename the id to just @PRODUCT_NAME@ as well since the .desktop suffix is no longer required. Provide URL as well. Spec: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-launchable Fixes appstream-builder generation. 2. Set the metadata_license to FSFAP. To be valid, it has to be one of the licenses vetted by the spec, otherwise `appstreamcli-compose` will error. Spec: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-metadata_license Fixes generation with `appstreamcli-compose` and thus distros which use `appstream-generator`. --- packaging/linux/sunshine.appdata.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/linux/sunshine.appdata.xml b/packaging/linux/sunshine.appdata.xml index 93757eb6c06..cb999d413e8 100644 --- a/packaging/linux/sunshine.appdata.xml +++ b/packaging/linux/sunshine.appdata.xml @@ -1,7 +1,7 @@ - @PROJECT_NAME@.desktop - @PROJECT_LICENSE@ + @PROJECT_NAME@ + CC0-1.0 @PROJECT_LICENSE@ @PROJECT_NAME@ @CMAKE_PROJECT_HOMEPAGE_URL@ @@ -11,6 +11,7 @@ @PROJECT_LONG_DESCRIPTION@

+ sunshine.desktop https://app.lizardbyte.dev/Sunshine/assets/images/AdobeStock_305732536_1920x1280.jpg