feat(build): use appstreamcli to validate appdata

This commit is contained in:
Sabri Ünal 2024-01-07 02:48:26 +03:00 committed by Romain Failliot
parent a65acad67f
commit 62a82aed08
1 changed files with 4 additions and 4 deletions

View File

@ -33,10 +33,10 @@ if build_machine.system() == 'linux'
install_dir: join_paths(get_option('datadir'), 'appdata') install_dir: join_paths(get_option('datadir'), 'appdata')
) )
appstream_util = find_program('appstream-util', required: false) appstreamcli = find_program('appstreamcli', required: false)
if appstream_util.found() if appstreamcli.found()
test('Validate appstream file', appstream_util, test('Validate appstream file', appstreamcli,
args: ['validate', appstream_file] args: ['validate', '--no-net', '--explain', appstream_file]
) )
endif endif
endif endif