Commit 20616330 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Meson: add git commit to version on devel/beta profile

parent 80ac1f74
Pipeline #86816 passed with stages
in 7 minutes and 56 seconds
ui_config = configuration_data()
ui_config.set('APP_ID', application_id)
ui_config.set('VERSION', meson.project_version())
ui_config.set('VERSION', meson.project_version() + version_suffix)
ui_preconfigured_files = files(
'resources/gtk/ui/about_dialog.ui.in',
......
......@@ -33,6 +33,7 @@ gettext_package = 'Authenticator'
profile = get_option('profile')
profile_suffix = ''
name_suffix = ''
version_suffix = ''
if profile != 'default'
gettext_package += profile
if profile == 'beta'
......@@ -42,6 +43,12 @@ if profile != 'default'
name_suffix = ' (Development)'
profile_suffix = 'Devel'
endif
vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
version_suffix = '-@0@'.format (vcs_tag)
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment