2020-03-12 15:27:32 -04:00
|
|
|
metainfo = app_id + '.metainfo.xml'
|
|
|
|
i18n.merge_file(metainfo,
|
|
|
|
input: metainfo + '.in',
|
|
|
|
output: metainfo,
|
2019-11-30 21:01:02 -05:00
|
|
|
po_dir: po_dir,
|
2020-03-12 15:27:32 -04: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 13:00:00 -04: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 15:27:32 -04:00
|
|
|
endif
|