Merge pull request #1200 from 23rd/patch-33-date-build-in-title

Added build date in Chatterino title for all platforms of CI.
This commit is contained in:
pajlada 2019-08-12 22:33:05 +02:00 committed by GitHub
commit 25de149b37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -24,7 +24,8 @@ matrix:
- sh ./.CI/InstallQTStylePlugins.sh
script:
- /opt/qt512/bin/qmake CONFIG+=release PREFIX=/usr
- dateOfBuild="CHATTERINO_NIGHTLY_VERSION_STRING=\"\\\"$(date +%d.%m.%Y)\\\"\""
- /opt/qt512/bin/qmake CONFIG+=release PREFIX=/usr DEFINES+=$dateOfBuild
- make -j$(nproc)
before_deploy:
@ -62,7 +63,8 @@ matrix:
script:
- mkdir build && cd build
- /usr/local/opt/qt/bin/qmake .. && make -j8
- dateOfBuild="CHATTERINO_NIGHTLY_VERSION_STRING=\"\\\"$(date +%d.%m.%Y)\\\"\""
- /usr/local/opt/qt/bin/qmake .. DEFINES+=$dateOfBuild && make -j8
- mkdir app
- mv chatterino.app app/
- "create-dmg \

View file

@ -28,7 +28,9 @@ build_script:
conan install ..
qmake ../chatterino.pro DEFINES+="CHATTERINO_NIGHTLY_VERSION_STRING=\\\"$$system(git describe --always)-$$system(git rev-list master --count)\\\""
set dateOfBuild=%date:~7,2%.%date:~4,2%.%date:~10,4%
qmake ../chatterino.pro DEFINES+="CHATTERINO_NIGHTLY_VERSION_STRING=\\\"'$s%dateOfBuild% '$$system(git describe --always)-$$system(git rev-list master --count)\\\""
set cl=/MP