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')
|
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
|
||||||
|
|
Loading…
Reference in New Issue