Commit hash changed from decimal to hexadecimal

pull/4/head
Alexander Diamadis 4 years ago
parent e61c79529a
commit deb7278a36

@ -4,9 +4,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
CONFIG+=sdk_no_version_check
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += warn_off
SOURCES += \
about.cpp \
@ -59,14 +57,10 @@ RESOURCES += \
VERSION=1.1.0
QMAKE_TARGET_PRODUCT = "PA-Calculator"
QMAKE_TARGET_COMPANY = "Alexander Diamadis"
QMAKE_TARGET_COMPANY = "DKM-Tech"
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2022 by Alexander Diamadis"
win32 {
commit = $$system("FOR /F \"tokens=*\" %H IN ('git rev-parse --short HEAD') DO @SET /A DECIMAL=0x%H")
} else {
commit = $$system("printf '%d' 0x`git rev-parse --short HEAD`")
}
commit = $$system(git rev-parse --short=8 HEAD)
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\" \

Loading…
Cancel
Save