mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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',
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user