File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,18 +13,22 @@ install:
1313 - ' %QTDIR%\bin\qtenv2.bat'
1414
1515build_script :
16- - set VERSION=%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_NUMBER%
17- - set INSTVERSION=%VERSION%
18- - if "%VERSION:~0,7%"=="master-" set INSTVERSION=99-%version:~7%
16+ - set BRANCH=%APPVEYOR_REPO_BRANCH%
17+ - if "%APPVEYOR_REPO_BRANCH%"=="master" set BRANCH=99.99
18+ - if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%BRANCH%-%APPVEYOR_BUILD_NUMBER%
19+ - if not defined APPVEYOR_REPO_TAG_NAME set INSTVERSION=%VERSION%
20+ - if not defined APPVEYOR_REPO_TAG_NAME set WINVERSION=%BRANCH%.0.0
1921 - if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
2022 - if defined APPVEYOR_REPO_TAG_NAME set INSTVERSION=%VERSION:~1%
23+ - if defined APPVEYOR_REPO_TAG_NAME set WINVERSION=%VERSION:~1%.%APPVEYOR_BUILD_NUMBER%
2124 - set DIST=redtimer-%VERSION%-win32-qt%QTVER%
2225 - set DATE=%date:~10,4%-%date:~4,2%-%date:~7,2%
2326 - echo %VERSION%
2427 - echo %INSTVERSION%
2528 - echo %DIST%
2629 - echo %DATE%
2730 - cd %APPVEYOR_BUILD_FOLDER%
31+ - sed -i "s/VERSION = 1.0.0.0/VERSION = %WINVERSION%/" gui\redtimer.pro
2832 - qmake -r
2933 - mingw32-make
3034
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ ICON = icons/clock_red.icns
1414
1515QMAKE_INFO_PLIST = Info.plist
1616
17+ win32 :VERSION = 1.0.0.0
18+
1719QMAKE_TARGET_COMPANY = " Thomssen IT"
1820QMAKE_TARGET_PRODUCT = " RedTimer"
1921QMAKE_TARGET_DESCRIPTION = " Redmine Time Tracker"
20- QMAKE_TARGET_COPYRIGHT = " LGPL 3 "
22+ QMAKE_TARGET_COPYRIGHT = " © Thomssen IT "
2123
2224HEADERS += \
2325 IssueCreator.h \
You can’t perform that action at this time.
0 commit comments