feat(build): use appstreamcli to validate appdata
This commit is contained in:
parent
a65acad67f
commit
62a82aed08
|
@ -33,10 +33,10 @@ if build_machine.system() == 'linux'
|
|||
install_dir: join_paths(get_option('datadir'), 'appdata')
|
||||
)
|
||||
|
||||
appstream_util = find_program('appstream-util', required: false)
|
||||
if appstream_util.found()
|
||||
test('Validate appstream file', appstream_util,
|
||||
args: ['validate', appstream_file]
|
||||
appstreamcli = find_program('appstreamcli', required: false)
|
||||
if appstreamcli.found()
|
||||
test('Validate appstream file', appstreamcli,
|
||||
args: ['validate', '--no-net', '--explain', appstream_file]
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue