Attempt to fix git versioning

This commit is contained in:
ArtyIF 2022-07-25 11:20:32 +03:00
parent 470930db36
commit 6c2be5dc4a
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
project('adwcustomizer', project('adwcustomizer',
version: 'git-' + run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip(), version: 'git',
meson_version: '>= 0.59.0', meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', default_options: [ 'warning_level=2',
'werror=false', 'werror=false',

View file

@ -27,7 +27,7 @@ python = import('python')
conf = configuration_data() conf = configuration_data()
conf.set('PYTHON', python.find_installation('python3').path()) conf.set('PYTHON', python.find_installation('python3').path())
conf.set('VERSION', meson.project_version()) conf.set('VERSION', 'git-' + run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip())
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir'))) conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
conf.set('pkgdatadir', pkgdatadir) conf.set('pkgdatadir', pkgdatadir)