forked from tibold/svg-explorer-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
135 lines (74 loc) · 3.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: 0.9.{build}
pull_requests:
do_not_increment_build_number: true
image: Visual Studio 2017
platform: x64
build_script:
- cmd: >-
set VC_DIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build
set INNOSETUP_DIR=C:\Program Files (x86)\Inno Setup 5
set JOM=C:\Qt\Tools\QtCreator\bin\jom.exe
set QMAKESPEC=win32-msvc
set PATH=%INNOSETUP_DIR%;%VC_DIR%;%PATH%
set PATH_BAK=%PATH%
cd SVGThumbnailExtension
mkdir license
copy C:\Qt\Licenses\LICENSE license\Qt.txt
copy ..\LICENSE.md license.txt
cd ..
echo ####################################################
echo Building 64bit installer
echo ####################################################
set QT_DIR=C:\Qt\5.13.2\msvc2017_64
set PATH=%QT_DIR%\bin;%PATH_BAK%
set BUILD_DIR=SVGThumbnailExtension-build-x64_Release
call vcvars64.bat || exit /B 1
mkdir %BUILD_DIR%
cd %BUILD_DIR%
qmake.exe ..\SVGThumbnailExtension\SVGThumbnailExtension.pro "CONFIG+=release"
%JOM%
cd ..\SVGThumbnailExtension
set ARCH=x64
mkdir %ARCH%\release\plugins\platforms
mkdir %ARCH%\release\plugins\styles
FOR %%G IN (Qt5Core,Qt5Gui,Qt5Svg,Qt5Widgets,Qt5WinExtras) DO copy %QT_DIR%\bin\%%G.dll %ARCH%\release
copy %QT_DIR%\plugins\platforms\qwindows.dll %ARCH%\release\plugins\platforms
copy %QT_DIR%\plugins\styles\qwindowsvistastyle.dll %ARCH%\release\plugins\styles
ISCC SVGThumbnailExtension_x64.iss /dQTDIR=%QTDIR%
cd ..
echo ####################################################
echo Building 32bit installer
echo ####################################################
set QT_DIR=C:\Qt\5.13.2\msvc2017
set PATH=%QT_DIR%\bin;%PATH_BAK%
set BUILD_DIR=SVGThumbnailExtension-build-x86_Release
call vcvars32.bat || exit /B 1
mkdir %BUILD_DIR%
cd %BUILD_DIR%
qmake.exe ..\SVGThumbnailExtension\SVGThumbnailExtension.pro "CONFIG+=release"
%JOM%
cd ..\SVGThumbnailExtension
set ARCH=x86
mkdir %ARCH%\release\plugins\platforms
mkdir %ARCH%\release\plugins\styles
FOR %%G IN (Qt5Core,Qt5Gui,Qt5Svg,Qt5Widgets,Qt5WinExtras) DO copy %QT_DIR%\bin\%%G.dll %ARCH%\release
copy %QT_DIR%\plugins\platforms\qwindows.dll %ARCH%\release\plugins\platforms
copy %QT_DIR%\plugins\styles\qwindowsvistastyle.dll %ARCH%\release\plugins\styles
ISCC SVGThumbnailExtension.iss /dQTDIR=%QTDIR%
cd ..
artifacts:
- path: installer/dssee_setup_x64.exe
name: installer 64bit
- path: installer/dssee_setup_i386.exe
name: installer 32bit
deploy:
- provider: GitHub
release: v$(appveyor_build_version)-dev
description: svg-explorer-extension-v$(appveyor_build_version) automatic development release
auth_token:
secure: ausNQ1KJr2yja6ysdC1M7RakjWyiSRDBLUdI3hp6DdHkzwG3ULwtsbol5QS60SR3
artifact: /installer\/.*\.exe/
draft: true
force_update: true
on:
branch: release