Bump version

This commit is contained in:
Dorian Zedler 2021-10-20 20:13:00 +02:00
parent 0ae9df710c
commit 60617daef2
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -4,7 +4,7 @@ android {
QT += androidextras
}
VERSION = 1.0.0
VERSION = 1.0.1
QMAKE_TARGET_PRODUCT = "ScStwApp"
QMAKE_TARGET_COMPANY = "Itsblue Development"
QMAKE_TARGET_COPYRIGHT = "Copyright (c) by Itsblue Development"
@ -73,8 +73,21 @@ DISTFILES += \
android {
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
ANDROID_VERSION_CODE = 15
ANDROID_VERSION_NAME = $${VERSION}
defineReplace(droidVersionCode) {
segments = $$split(1, ".")
for (segment, segments): vCode = "$$first(vCode)$$format_number($$segment, width=3 zeropad)"
contains(ANDROID_TARGET_ARCH, arm64-v8a): \
suffix = 1
else:contains(ANDROID_TARGET_ARCH, armeabi-v7a): \
suffix = 0
# add more cases as needed
return($$first(vCode)$$first(suffix))
}
ANDROID_VERSION_NAME = $$VERSION
ANDROID_VERSION_CODE = $$droidVersionCode($$ANDROID_VERSION_NAME)
}
# This has to be the last line in the file