appdata: Improve appdata for AppStream 1.0

- Add appstreamcli support to validate the appdata file.
- Add missing release information.
- Use the `<developer><name>` tag instead of the deprecated `<developer_name>`
This commit is contained in:
Sabri Ünal
2023-12-17 21:06:04 +03:00
parent 44f52c244c
commit 3e56d57240
2 changed files with 19 additions and 3 deletions

View File

@ -8,13 +8,24 @@ if get_option('gtk') and get_option('libsysprof')
output: 'org.gnome.Sysprof.appdata.xml.in',
configuration: config_h,
)
i18n.merge_file(
appdata_file = i18n.merge_file(
input: appdata_in,
output: '@0@.appdata.xml'.format(app_id),
po_dir: podir,
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test(
'validate-appdata', appstreamcli,
args: [
'validate', '--no-net', '--explain', appdata_file
],
depends: appdata_file,
)
endif
desktop_in = configure_file(
input: 'org.gnome.Sysprof.desktop.in.in',

View File

@ -7,7 +7,9 @@
<summary>Profile an application or entire system</summary>
<project_license>GPL-3.0+</project_license>
<project_group>GNOME</project_group>
<developer_name>The GNOME Foundation</developer_name>
<developer id="gnome.org">
<name>The GNOME Project</name>
</developer>
<description>
<p>Sysprof allows you to profile applications to aid in debugging and optimization.</p>
@ -41,7 +43,10 @@
</provides>
<releases>
<release version="45.beta" date="2023-08-07"/>
<release version="45.1" date="2023-10-24"/>
<release version="45" date="2023-09-17"/>
<release version="45~rc" date="2023-09-01"/>
<release version="45~beta" date="2023-08-07"/>
</releases>
<metadata_license>CC0-1.0</metadata_license>