build:Do not add an unwanted dot to application id

The current meson.build file adds an extra dot to the app id, especially
when building the default profile.

Fix this by using only the base app id when building the default profile.

Fix backported from https://gitlab.gnome.org/bilelmoussaoui/gtk-rust-template/-/merge_requests/20
This commit is contained in:
Rachit Keerti Das 2021-02-25 13:37:23 +05:30
parent 21dc10e36a
commit 461fe38af4
No known key found for this signature in database
GPG key ID: 6B5234A51C013138

View file

@ -44,13 +44,13 @@ if get_option('profile') == 'development'
else
version_suffix = '-@0@'.format(vcs_tag)
endif
application_id = '@0@.@1@'.format(base_id, profile)
else
profile = ''
version_suffix = ''
application_id = base_id
endif
application_id = '@0@.@1@'.format(base_id, profile)
meson.add_dist_script(
'build-aux/dist-vendor.sh',
meson.build_root() / 'meson-dist' / meson.project_name() + '-' + version,