mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
extensions-app: Include commit hash in nightly version
It's useful information for development snapshots, so include it when building from a git checkout. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3612 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1661>
This commit is contained in:
parent
60d640189b
commit
6bea1e7a47
2 changed files with 7 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
||||||
launcherconf = configuration_data()
|
launcherconf = configuration_data()
|
||||||
launcherconf.set('app_id', app_id)
|
launcherconf.set('app_id', app_id)
|
||||||
launcherconf.set('PACKAGE_NAME', package_name)
|
launcherconf.set('PACKAGE_NAME', package_name)
|
||||||
launcherconf.set('PACKAGE_VERSION', meson.project_version())
|
if vcs_tag != ''
|
||||||
|
launcherconf.set('PACKAGE_VERSION', '@0@ (@1@)'.format(package_version, vcs_tag))
|
||||||
|
else
|
||||||
|
launcherconf.set('PACKAGE_VERSION', package_version)
|
||||||
|
endif
|
||||||
launcherconf.set('prefix', prefix)
|
launcherconf.set('prefix', prefix)
|
||||||
launcherconf.set('libdir', libdir)
|
launcherconf.set('libdir', libdir)
|
||||||
launcherconf.set('pkgdatadir', pkgdatadir)
|
launcherconf.set('pkgdatadir', pkgdatadir)
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,10 @@ project('gnome-extensions-app',
|
||||||
|
|
||||||
if get_option('profile') == 'development'
|
if get_option('profile') == 'development'
|
||||||
profile = '.Devel'
|
profile = '.Devel'
|
||||||
|
vcs_tag = run_command('git', 'rev-parse', '--short', '@').stdout().strip()
|
||||||
else
|
else
|
||||||
profile = ''
|
profile = ''
|
||||||
|
vcs_tag = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
base_id = 'org.gnome.Extensions'
|
base_id = 'org.gnome.Extensions'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue