
Everything, including flathub[0], should be using appstreamcli now, so stop supporting the old tool as well. [0] https://docs.flathub.org/blog/improved-build-validation Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3520>
25 lines
569 B
Meson
25 lines
569 B
Meson
metainfoconf = configuration_data()
|
|
metainfoconf.set('app_id', app_id)
|
|
metainfoconf.set('package_name', package_name)
|
|
|
|
metainfo = i18n.merge_file(
|
|
input: configure_file(
|
|
input: base_id + '.metainfo.xml.in',
|
|
output: app_id + '.metainfo.xml.in',
|
|
configuration: metainfoconf,
|
|
),
|
|
output: '@BASENAME@',
|
|
po_dir: po_dir,
|
|
install: true,
|
|
install_dir: metainfodir
|
|
)
|
|
|
|
# Validate Appdata
|
|
if (appstreamcli.found())
|
|
test('Validating metainfo',
|
|
appstreamcli,
|
|
args: ['validate', '--no-net', metainfo],
|
|
workdir: meson.current_build_dir()
|
|
)
|
|
endif
|