自动读取分支名

This commit is contained in:
2023-03-07 17:12:22 +08:00
parent bcb399dc30
commit 1613825b7c
3 changed files with 4 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
VERSION = $$BUILD_VERSION
isEmpty(VERSION): VERSION = 4.0.0
DEFINES += APP_VERSION=\\\"'$${VERSION}'\\\"
DEFINES += APP_BRANCH=\\\"'$$system(git symbolic-ref --short -q HEAD)'\\\"
# Disable qWarning / qDebug output in Release
#CONFIG(release, debug | release): DEFINES += QT_NO_WARNING_OUTPUT QT_NO_DEBUG_OUTPUT