1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Remember compile time timestamp

Will be used to guarantee we don't downgrade if there's a bad update
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-13 13:59:04 +01:00
parent c9f3bf54ac
commit d0dae300cc
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@ RESOURCES += res.qrc
GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git")
DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\"
TIMESTAMP = $$system(date +"%s" || echo 0)
DEFINES += TIMESTAMP=$$TIMESTAMP
DEFINES += LOG_TO_FILE
contains(JENKINS,YES) {

View File

@ -94,7 +94,7 @@ int main(int argc, char *argv[])
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
a.addLibraryPath("platforms");
qDebug() << "built on: " << __TIME__ << __DATE__;
qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
qDebug() << "commit: " << GIT_VERSION << "\n";
// Install Unicode 6.1 supporting font