Compare commits

...

3 Commits

Author SHA1 Message Date
Hugo Posnic
f7cb6612f6
Merge pull request #199 from sabriunal/fix-appdata
appdata: Improve appdata for AppStream 1.0
2024-01-03 13:25:18 +01:00
Sabri Ünal
3f8064065f appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Use --no-net argument for appstreamcli to reduce traffic
2023-12-28 22:39:27 +03:00
Sabri Ünal
363bfc626f appdata: Fix my mistake
"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
2023-12-28 22:34:47 +03:00
2 changed files with 6 additions and 11 deletions

View File

@ -11,7 +11,11 @@
<p>Optimize your images with Curtail, a useful image compressor that supports PNG, JPEG, WebP and SVG file types.</p>
<p>It supports both lossless and lossy compression modes with an option to whether keep or not metadata of images.</p>
</description>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Hugo Posnic</developer_name>
<developer id="github.com">
<name translatable="no">Hugo Posnic</name>
</developer>
<update_contact>hugo.posnic@protonmail.com</update_contact>
<url type="homepage">https://github.com/Huluti/Curtail</url>
<url type="bugtracker">https://github.com/Huluti/Curtail/issues</url>
@ -21,15 +25,6 @@
<kudos>
<kudo>ModernToolkit</kudo>
</kudos>
<categories>
<category>Graphics</category>
</categories>
<keywords>
<keyword>compress</keyword>
<keyword>optimize</keyword>
<keyword>image</keyword>
<keyword>photo</keyword>
</keywords>
<screenshots>
<screenshot type="default">
<image type="source">https://raw.githubusercontent.com/Huluti/Curtail/master/data/screenshots/screen1.png</image>
@ -367,4 +362,3 @@
</release>
</releases>
</component>

View File

@ -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