Skip to content

Commit 48a71c1

Browse files
author
Frederick Thomssen
committed
Windows version
1 parent 1f50639 commit 48a71c1

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

appveyor.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@ install:
1313
- '%QTDIR%\bin\qtenv2.bat'
1414

1515
build_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

gui/redtimer.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ ICON = icons/clock_red.icns
1414

1515
QMAKE_INFO_PLIST = Info.plist
1616

17+
win32:VERSION = 1.0.0.0
18+
1719
QMAKE_TARGET_COMPANY = "Thomssen IT"
1820
QMAKE_TARGET_PRODUCT = "RedTimer"
1921
QMAKE_TARGET_DESCRIPTION = "Redmine Time Tracker"
20-
QMAKE_TARGET_COPYRIGHT = "LGPL 3"
22+
QMAKE_TARGET_COPYRIGHT = "© Thomssen IT"
2123

2224
HEADERS += \
2325
IssueCreator.h \

0 commit comments

Comments
 (0)