appdata: Improve appdata for AppStream 1.0 (#222)

* appdata: Improve appdata for AppStream 1.0

- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Improve appstreamcli parameters
- Activate meson tests on Flatpak manifest

* Change developer ID to kramo.hu

---------

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>
This commit is contained in:
Sabri Ünal
2023-12-31 18:29:15 +03:00
committed by GitHub
parent 3f5d3eb3b1
commit 80c8566535
3 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,11 @@
<url type="contact">https://www.kramo.hu/about/</url>
<url type="vcs-browser">https://github.com/kra-mo/cartridges</url>
<url type="contribute">https://github.com/kra-mo/cartridges/blob/main/CONTRIBUTING.md</url>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">kramo</developer_name>
<developer id="kramo.hu">
<name translatable="no">kramo</name>
</developer>
<project_group>GNOME</project_group>
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
<translation type="gettext">cartridges</translation>

View File

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

View File

@@ -123,6 +123,7 @@
"name" : "cartridges",
"builddir" : true,
"buildsystem" : "meson",
"run-tests" : true,
"config-opts": [
"-Dprofile=development"
],