1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

update for build error

This commit is contained in:
jared 2019-12-18 12:03:32 +08:00
parent c487706175
commit b8bd251e15
4 changed files with 8 additions and 3 deletions

Binary file not shown.

View File

@ -4,7 +4,7 @@
#include <QTranslator>
#include <QQmlEngine>
#include <QCoreApplication>
#include <QGuiApplication>
#include <QDir>
#include <QJsonDocument>
#include <QQuickItem>

View File

@ -8,7 +8,7 @@
#define RELEASE_VER_MAIN TaoMAJ
#define RELEASE_VER_MAIN2 TaoMIN
#define RELEASE_VER_SUB TaoPAT
#define RELEASE_VER_BUILD REVISION
#define VER_COMPANYNAME_STR "JaredTao\0"
#define VER_FILEDESCRIPTION_STR "TaoQuickDemo,未经授权不得商用,侵权必究\0"

View File

@ -3,7 +3,12 @@ TAO_VERSION_TAG = 1.0
# current commit hash
REVISION=$$system("git rev-parse HEAD")
REVISION=$$str_member($${REVISION}, 0, $$num_add(10, -1))
isEmpty(REVISION) {
REVISION = 0000000000
}
isEmpty(Ver) {
Ver=0.0.0
}
# last tag
Ver=$$system("git describe --abbrev=0 --tags")
VerList =$$split(Ver, .)