From 363bfc626fb8fd297cdd7af81681860d3097dc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Thu, 28 Dec 2023 22:18:51 +0300 Subject: [PATCH 1/2] appdata: Fix my mistake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Icons and categories If there’s a type="desktop-id" launchable, they get pulled from it. Most of the icon not found errors with the flathub builder can be traced down to the launchable value not matching the desktop file name. Don’t set them in the AppData unless you want to override them (even though then it might be a better idea to patch the desktop file itself)." More information: https://docs.flathub.org/docs/for-app-authors/appdata-guidelines/#icons-and-categories --- data/com.github.huluti.Curtail.appdata.xml.in | 9 --------- 1 file changed, 9 deletions(-) diff --git a/data/com.github.huluti.Curtail.appdata.xml.in b/data/com.github.huluti.Curtail.appdata.xml.in index 612b044..fde53a1 100644 --- a/data/com.github.huluti.Curtail.appdata.xml.in +++ b/data/com.github.huluti.Curtail.appdata.xml.in @@ -21,15 +21,6 @@ ModernToolkit - - Graphics - - - compress - optimize - image - photo - https://raw.githubusercontent.com/Huluti/Curtail/master/data/screenshots/screen1.png From 3f8064065f0fe4b8d7e015b5fe01edfdb2769669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Thu, 28 Dec 2023 22:39:01 +0300 Subject: [PATCH 2/2] appdata: Improve appdata for AppStream 1.0 - Add the `` tag - Mark the `` tag as deprecated - Use --no-net argument for appstreamcli to reduce traffic --- data/com.github.huluti.Curtail.appdata.xml.in | 5 ++++- data/meson.build | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/data/com.github.huluti.Curtail.appdata.xml.in b/data/com.github.huluti.Curtail.appdata.xml.in index fde53a1..db72af7 100644 --- a/data/com.github.huluti.Curtail.appdata.xml.in +++ b/data/com.github.huluti.Curtail.appdata.xml.in @@ -11,7 +11,11 @@

Optimize your images with Curtail, a useful image compressor that supports PNG, JPEG, WebP and SVG file types.

It supports both lossless and lossy compression modes with an option to whether keep or not metadata of images.

+ Hugo Posnic + + Hugo Posnic + hugo.posnic@protonmail.com https://github.com/Huluti/Curtail https://github.com/Huluti/Curtail/issues @@ -358,4 +362,3 @@ - diff --git a/data/meson.build b/data/meson.build index 43c63ad..edbff44 100644 --- a/data/meson.build +++ b/data/meson.build @@ -36,7 +36,8 @@ appstream_file = i18n.merge_file( appstreamcli = find_program('appstreamcli', required: false) if appstreamcli.found() test('Validate appstream file', appstreamcli, - args: ['validate', appstream_file] + args: ['validate', '--no-net', '--explain', appstream_file], + workdir: meson.current_build_dir() ) endif