win32/res/meson.build: drop tilde suffix from version number before splitting

MPD sometimes uses version numbers like "0.22~git" to mark unreleased
versions.  That makes the win32 resource compiler unhappy, because it
expects numbers only.
This commit is contained in:
Max Kellermann 2019-03-18 09:58:35 +01:00
parent 7f87de783f
commit e22bdee808
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
windows_conf = configuration_data()
windows_conf.set('VERSION', meson.project_version())
splitted_version = meson.project_version().split('.')
splitted_version = meson.project_version().split('~')[0].split('.')
windows_conf.set('VERSION_MAJOR', splitted_version[0])
windows_conf.set('VERSION_MINOR', splitted_version.get(1, '0'))
windows_conf.set('VERSION_REVISION', splitted_version.get(2, '0'))