Merge pull request #548 from ximion/master

Use modern appstream, instead of appstream-util for validation
This commit is contained in:
Rafał Dzięgiel
2025-05-03 15:42:28 +02:00
committed by GitHub

View File

@@ -1,10 +1,11 @@
appstream_util = find_program('appstream-util', required: false) appstream_cli = find_program('appstreamcli', required: false)
if appstream_util.found() if appstream_cli.found()
test('Validate appstream file', test('Validate appstream file',
appstream_util, appstream_cli,
args: [ args: [
'validate-relax', 'validate',
'--nonet', '--no-net',
'--explain',
join_paths(meson.current_source_dir(), 'metainfo', 'com.github.rafostar.Clapper.metainfo.xml'), join_paths(meson.current_source_dir(), 'metainfo', 'com.github.rafostar.Clapper.metainfo.xml'),
] ]
) )