flatpak: Allow dual installation of app bundles
Part of https://gitlab.gnome.org/GNOME/Initiatives/issues/1. Allows for the installation of development bundles alongside stable versions. Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/285
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
151c47a8b3
commit
0d6b2327e0
+18
-3
@@ -34,6 +34,18 @@ calendar_schemadir = join_paths(calendar_datadir, 'glib-2.0', 'schemas')
|
||||
# Options #
|
||||
###########
|
||||
|
||||
rev_txt = run_command('git','rev-parse','--short','HEAD').stdout().strip()
|
||||
if get_option('profile') == 'development'
|
||||
profile = 'Devel'
|
||||
name_suffix = ' (Development)'
|
||||
rev = '-@0@'.format(rev_txt)
|
||||
else
|
||||
profile = ''
|
||||
name_suffix = ''
|
||||
rev = ''
|
||||
endif
|
||||
|
||||
application_id = 'org.gnome.Calendar.@0@'.format(profile)
|
||||
calendar_buildtype = get_option('buildtype')
|
||||
calendar_debug = calendar_minor_version.is_odd() or calendar_buildtype.contains('debug')
|
||||
enable_tracing = get_option('tracing')
|
||||
@@ -52,9 +64,12 @@ set_defines = [
|
||||
['PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), calendar_version)],
|
||||
['PACKAGE_TARNAME', meson.project_name()],
|
||||
['PACKAGE_URL', 'https://wiki.gnome.org/Apps/Calendar'],
|
||||
['PACKAGE_VERSION', calendar_version],
|
||||
['VERSION', calendar_version],
|
||||
['GETTEXT_PACKAGE', meson.project_name()]
|
||||
['PACKAGE_VERSION', calendar_version + rev],
|
||||
['VERSION', calendar_version + rev],
|
||||
['GETTEXT_PACKAGE', meson.project_name()],
|
||||
['PROFILE', profile],
|
||||
['NAME_SUFFIX', name_suffix],
|
||||
['APPLICATION_ID', application_id]
|
||||
]
|
||||
|
||||
foreach define: set_defines
|
||||
|
||||
Reference in New Issue
Block a user