gnome-control-center/shell/appdata/meson.build
Sabri Ünal 1d1f95bb4d appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Add appstreamcli validation
- Fix release version warnings
- Remove one of the custom Purism tag to pass the validation test
2024-01-08 15:48:19 +00:00

27 lines
711 B
Meson

appdata_conf = configuration_data()
appdata_conf.set('appid', application_id)
appdata = 'org.gnome.Settings.appdata.xml'
appdata_file = i18n.merge_file(
input: configure_file(
input: appdata + '.in',
output: 'org.gnome.Settings.appdata.xml.in',
configuration: appdata_conf
),
output: '@0@.appdata.xml'.format(application_id),
po_dir: po_dir,
install: true,
install_dir: join_paths(control_center_datadir, 'metainfo')
)
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test(
'validate-appdata',
appstreamcli,
args: ['validate', '--no-net', '--explain', appdata_file.full_path()],
depends: appdata_file
)
endif