appdata: Improve appdata for AppStream 1.0

- Add the `<developer><name>` tag
- Mark the `<developer_name>` as deprecated
- Use appstreamcli to validate appdata
- Remove one of Purism tag to pass appstreamcli validation
This commit is contained in:
Sabri Ünal 2023-12-22 04:12:53 +03:00
parent 410e71141f
commit 3ed3b26450
2 changed files with 14 additions and 1 deletions

View file

@ -88,6 +88,16 @@ appstream_file = i18n.merge_file(
install_dir: iv_datadir / 'metainfo'
)
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if (appstreamcli.found())
test('Validate metainfo file',
appstreamcli,
args: ['validate', '--no-net', appstream_file],
workdir: meson.current_build_dir()
)
endif
subdir('icons')
# GSchema