2020-03-12 19:27:32 +00:00
|
|
|
metainfo = app_id + '.metainfo.xml'
|
|
|
|
i18n.merge_file(metainfo,
|
|
|
|
input: metainfo + '.in',
|
|
|
|
output: metainfo,
|
2019-12-01 02:01:02 +00:00
|
|
|
po_dir: po_dir,
|
2020-03-12 19:27:32 +00:00
|
|
|
install: true,
|
|
|
|
install_dir: metainfodir
|
|
|
|
)
|
|
|
|
|
|
|
|
if (appstream_util.found())
|
|
|
|
test('Validating ' + metainfo,
|
|
|
|
appstream_util,
|
|
|
|
args: ['validate', '--nonet', metainfo],
|
|
|
|
workdir: meson.current_build_dir()
|
|
|
|
)
|
2020-03-22 17:00:00 +00:00
|
|
|
|
|
|
|
r = run_command(appstream_util, '--help')
|
|
|
|
if (r.stdout().contains('validate-version'))
|
|
|
|
test('Checking release entry for @0@'.format(meson.project_version()),
|
|
|
|
appstream_util,
|
|
|
|
args: ['validate-version', metainfo, meson.project_version()],
|
|
|
|
workdir: meson.current_build_dir()
|
|
|
|
)
|
|
|
|
endif
|
2020-03-12 19:27:32 +00:00
|
|
|
endif
|