gnome-control-center/shell/appdata/meson.build
Hari Rana d9970d4f27 flatpak: Suffix app ID with .Devel
This commit changes the app ID from `org.gnome.SettingsDevel` to `org.gnome.Settings.Devel`, as recommended by the GNOME Developer Documentation - https://developer.gnome.org/documentation/tutorials/application-id.html#application-id-for-flatpak-development.

Additionally, some changes have been made in the buildsystem, to properly substitute the app ID depending on the profile in use.
2024-03-21 16:14:31 +00:00

25 lines
690 B
Meson

appdata_conf = configuration_data()
appdata_conf.set('appid', application_id)
appdata_file = i18n.merge_file(
input: configure_file(
input: 'org.gnome.Settings.appdata.xml.in.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