mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Create better version numbering for Windows
I don't think this will be a problem for the other OSs, but it needs a bit more testing, especially on the Mac. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0e0d6135af
commit
2b8043b82b
3 changed files with 23 additions and 7 deletions
|
|
@ -10,6 +10,7 @@ exists(.git/HEAD): {
|
|||
VERSION_SCRIPT = $$PWD/scripts/get-version
|
||||
# always use linux here -------------------vvv so we get the true full version
|
||||
FULL_VERSION = "`$$VERSION_SCRIPT linux`"
|
||||
VERSION = $$system("sh scripts/get-version full || echo $${VERSION}")
|
||||
PRODVERSION_STRING = $$system("sh scripts/get-version win $$FULL_VERSION || echo $${VERSION}.0.0-git")
|
||||
VERSION_STRING = $$system("sh scripts/get-version linux $$FULL_VERSION || echo $${VERSION}-git")
|
||||
version_h.depends = $$VERSION_SCRIPT $$PWD/.git/$$system("$$SET_GIT_DIR=$$PWD/.git git rev-parse --symbolic-full-name HEAD")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue