appdata: Improve appdata for AppStream 1.0

- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Improve appstreamcli arguments
- Activate meson tests on Flatpak manifest
This commit is contained in:
Sabri Ünal 2023-12-31 16:22:48 +03:00 committed by Rafael Mardojai CM
parent 74a7b3c981
commit ecdff2f387
3 changed files with 6 additions and 1 deletions

View file

@ -33,6 +33,7 @@
{
"name" : "dialect",
"buildsystem" : "meson",
"run-tests": true,
"config-opts": ["-Dprofile=development"],
"sources" : [
{

View file

@ -29,7 +29,11 @@
<url type="bugtracker">https://github.com/dialect-app/dialect/issues/</url>
<url type="translate">https://hosted.weblate.org/engage/dialect/</url>
<url type="vcs-browser">https://github.com/dialect-app/dialect/</url>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name>The Dialect Authors</developer_name>
<developer id="github.com">
<name>The Dialect Authors</name>
</developer>
<content_rating type="oars-1.1" />
<launchable type="desktop-id">@app-id@.desktop</launchable>

View file

@ -40,7 +40,7 @@ appstream_file = i18n.merge_file(
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', appstream_file.full_path()]
args: ['validate', '--no-net', '--explain', appstream_file.full_path()]
)
endif