Merge pull request #233 from probonopd/TheAssassin/fix-version-information
Fix version information (fixes #232)
This commit is contained in:
@@ -39,6 +39,10 @@ ulimit -a -H
|
|||||||
# error handling performed separately
|
# error handling performed separately
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
# print version number
|
||||||
|
./linuxdeployqt-*-x86_64.AppImage --version
|
||||||
|
|
||||||
|
# TODO: reactivate tests
|
||||||
#bash -e tests/tests.sh
|
#bash -e tests/tests.sh
|
||||||
true
|
true
|
||||||
RESULT=$?
|
RESULT=$?
|
||||||
|
|||||||
@@ -24,10 +24,14 @@ DEFINES += LINUXDEPLOYQT_GIT_COMMIT="'\"$(shell git rev-parse --short HEAD)\"'"
|
|||||||
|
|
||||||
DEFINES += BUILD_DATE="'\"$(shell env LC_ALL=C date -u '+%Y-%m-%d %H:%M:%S %Z')\"'"
|
DEFINES += BUILD_DATE="'\"$(shell env LC_ALL=C date -u '+%Y-%m-%d %H:%M:%S %Z')\"'"
|
||||||
|
|
||||||
equals($$(TRAVIS_BUILD_NUMBER), "") {
|
_BUILD_NUMBER = $$(TRAVIS_BUILD_NUMBER)
|
||||||
|
|
||||||
|
isEmpty(_BUILD_NUMBER) {
|
||||||
|
message(Not building on Travis CI, tagging build as local dev build)
|
||||||
DEFINES += BUILD_NUMBER="'\"<local dev build>\"'"
|
DEFINES += BUILD_NUMBER="'\"<local dev build>\"'"
|
||||||
} else {
|
} else {
|
||||||
DEFINES += BUILD_NUMBER="'\"$$(TRAVIS_BUILD_NUMBER)\"'"
|
message(Building on Travis CI build, build number $$_BUILD_NUMBER)
|
||||||
|
DEFINES += BUILD_NUMBER="'\"$$_BUILD_NUMBER\"'"
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell git describe --tags $(shell git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'"
|
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell git describe --tags $(shell git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'"
|
||||||
|
|||||||
Reference in New Issue
Block a user