-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.appveyor.yml
57 lines (49 loc) · 1.84 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 0.1_b{build}
configuration: Release
branches:
only:
- master
environment:
DEPLOY_DIR: Qrop-%APPVEYOR_BUILD_VERSION%
matrix:
- name: mingw53_32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: amd64_x86
qt: 5.11\mingw53_32
suffix: mingw53_32
arch: x86
# MSVC x86
- name: win32
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: amd64_x86
qt: 5.11\msvc2015
suffix: msvc2015
arch: x86
# MSVC x64
- name: amd64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: amd64
qt: 5.11\msvc2015_64
suffix: msvc2015
arch: x64
init:
- set PATH=C:\Qt\%qt%\bin;%PATH%
- if %name%==win32 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch%
- if %name%==amd64 call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if %name%==amd64 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
- if %name%==mingw53_32 set PATH=C:\MinGW\bin;%PATH%
- cd /D "%APPVEYOR_BUILD_FOLDER%"
build_script:
- cd C:\projects\qrop
- qmake -config release qrop.pro CONFIG+=windows PREFIX="%DEPLOY_DIR%"
- if %name%==mingw53_32 (mingw32-make) else (nmake)
after_build:
- if %name%==mingw53_32 (mingw32-make install) else (nmake install)
- cmd: cp core/release/*.dll "desktop/%DEPLOY_DIR%"
- if %name%==mingw53_32 xcopy "C:\Qt\%qt%\bin\libwinpthread-1.dll" "desktop\%DEPLOY_DIR%"
- xcopy "C:\Qt\%qt%\bin\libstdc++-*.dll" "desktop\%DEPLOY_DIR%"
- windeployqt --release --qmldir desktop/qml "desktop\%DEPLOY_DIR%\desktop.exe" +core +declarative +opengl +qml +qmltooling +quick +quickwidgets +sql +winextras
- 7z a qrop-%APPVEYOR_BUILD_VERSION%-%name%.zip "desktop\%DEPLOY_DIR%"
artifacts:
- path: qrop-%APPVEYOR_BUILD_VERSION%-%name%.zip
name: release