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:
parent
c9f3bf54ac
commit
d0dae300cc
2
qtox.pro
2
qtox.pro
@ -46,6 +46,8 @@ RESOURCES += res.qrc
|
|||||||
|
|
||||||
GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git")
|
GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git")
|
||||||
DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\"
|
DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\"
|
||||||
|
TIMESTAMP = $$system(date +"%s" || echo 0)
|
||||||
|
DEFINES += TIMESTAMP=$$TIMESTAMP
|
||||||
DEFINES += LOG_TO_FILE
|
DEFINES += LOG_TO_FILE
|
||||||
|
|
||||||
contains(JENKINS,YES) {
|
contains(JENKINS,YES) {
|
||||||
|
@ -94,7 +94,7 @@ int main(int argc, char *argv[])
|
|||||||
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
||||||
a.addLibraryPath("platforms");
|
a.addLibraryPath("platforms");
|
||||||
|
|
||||||
qDebug() << "built on: " << __TIME__ << __DATE__;
|
qDebug() << "built on: " << __TIME__ << __DATE__ << "(" << TIMESTAMP << ")";
|
||||||
qDebug() << "commit: " << GIT_VERSION << "\n";
|
qDebug() << "commit: " << GIT_VERSION << "\n";
|
||||||
|
|
||||||
// Install Unicode 6.1 supporting font
|
// Install Unicode 6.1 supporting font
|
||||||
|
Loading…
x
Reference in New Issue
Block a user