diff --git a/.travis.yml b/.travis.yml index 106c9fd69..4ff31be70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ diff --git a/appveyor.yml b/appveyor.yml index 68f339086..d7423b275 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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