forked from luojilab/Magic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
106 lines (87 loc) · 2.7 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
version: '0.9.10-{build}'
branches:
only:
- master
- /\d+\.\d+\.\d+(-\d+)?/
clone_folder: c:\project\sigil
image:
- Visual Studio 2015
configuration: Release
platform:
- x86
- x64
clone_script:
- ps: >-
if(-not $env:appveyor_pull_request_number) {
git clone -q --depth=1 --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
git checkout -qf $env:appveyor_repo_commit
} else {
git clone -q --depth=1 https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge:
git checkout -qf FETCH_HEAD
}
Set-Location $env:appveyor_build_folder
environment:
global:
INNO: C:\Program Files (x86)\Inno Setup 5
REDIST: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\1033\vcredist_%PLATFORM%.exe
DOWNLOAD: https://github.com/dougmassay/win-qtwebkit-5.212/releases/download/v5.212-1/qt5.11-custom-webkit-%PLATFORM%.zip
matrix:
- PYTHON: C:\Python37
QT: C:\Qt\5.11.1\msvc2015
CMAKE64BIT:
- PYTHON: C:\Python37-x64
QT: C:\Qt\5.11.1\msvc2015_64
CMAKE64BIT: -DWIN_INSTALLER_USE_64BIT_CRT=1
matrix:
exclude:
- platform: x86
PYTHON: C:\Python37-x64
- platform: x64
PYTHON: C:\Python37
fast_finish: true
only_commits:
files:
- CMakeLists.txt
- appveyor.yml
- installer/Sigil.iss
- src/
- internal/
- cmake_extras/
- 3rdparty/
before_build:
- cmd: |-
rmdir c:\cygwin /s /q
rmdir c:\Python35 /s /q
rmdir c:\Python35-x64 /s /q
cp '%REDIST%' installer/
mkdir build
cd ..\..
curl.exe -L -o webkit.zip %DOWNLOAD%
7z x webkit.zip -y
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
python -m pip install --upgrade pip
pip3.7 install six
pip3.7 install html5lib
pip3.7 install regex
pip3.7 install cssutils
pip3.7 install cssselect
pip3.7 install chardet
pip3.7 install pillow==5.2.0
pip3.7 install PyQt5==5.11.2
pip3.7 install lxml==4.2.4
cd project\sigil\build
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
cmake .. -G "NMake Makefiles" -DSIGIL_REDIST_VERSION="14.0.24215" -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_PREFIX_PATH=%QT% %CMAKE64BIT%
build_script:
- cmd: |-
set PATH=%PYTHON%;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
nmake
after_build:
- cmd: |-
set PATH=%PYTHON%;%QT%\bin;%INNO%;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
nmake makeinstaller
artifacts:
path: build\installer\*.exe