-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
67 lines (57 loc) · 2.42 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
version: '{build}'
init:
- git config --global core.autocrlf input
environment:
matrix:
- arch: x86
QT5: C:\Qt\5.10.0\mingw53_32
MINGW: C:\Qt\Tools\mingw530_32
matrix:
fast_finish: true
#cache:
# build/dependencies
install:
- git submodule update --init --recursive
- ps: $releases = "https://api.github.com/repos/praaline/praaline-dependencies/releases"
- ps: $tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name
- ps: $download = "https://github.com/praaline/praaline-dependencies/releases/download/$tag/praaline_dependencies_win_x86.zip"
- ps: Write-Host $download
- ps: Invoke-WebRequest $download -OutFile praaline_dependencies_win.zip
before_build:
- set PATH=%MINGW%\bin;%QT5%\bin;%PATH%
build_script:
- if not exist build mkdir build
- cd build
# Path to save plugins
- mkdir -p .\app\build\plugins
# Install dependencies
- 7z e ..\praaline_dependencies_win.zip -o..\build\dependencies\qscintilla\Qt4Qt5\release qscintilla2.dll
- 7z e ..\praaline_dependencies_win.zip -o..\dependencies\qtilities\bin Qtilities*.dll
- 7z e ..\praaline_dependencies_win.zip -o..\dependencies\qt-solutions\qtpropertybrowser\lib QtSolutions_PropertyBrowser-head.dll
# Build Praaline
- qmake -v
- qmake ..\PraalineCI.pro CONFIG+=release && mingw32-make
- dir /s
# Package
- cd ..
- mkdir deploy
# Package dependencies
- copy build\dependencies\qscintilla\Qt4Qt5\release\qscintilla2.dll deploy\qscintilla2.dll
- copy dependencies\qtilities\bin\QtilitiesCore-1.5.dll deploy\QtilitiesCore-1.5.dll
- copy dependencies\qtilities\bin\QtilitiesCoreGui-1.5.dll deploy\QtilitiesCoreGui-1.5.dll
- copy dependencies\qtilities\bin\QtilitiesExtensionSystem-1.5.dll deploy\QtilitiesExtensionSystem-1.5.dll
- copy dependencies\qtilities\bin\QtilitiesLogging-1.5.dll deploy\QtilitiesLogging-1.5.dll
- copy dependencies\qtilities\bin\QtilitiesProjectManagement-1.5.dll deploy\QtilitiesProjectManagement-1.5.dll
- copy dependencies\qt-solutions\qtpropertybrowser\lib\QtSolutions_PropertyBrowser-head.dll deploy\QtSolutions_PropertyBrowser-head.dll
# Package build result
- copy build\app\build\praaline.exe deploy\praaline.exe
- copy build\pncore\build\release\pncore.dll deploy\pncore.dll
# WinQtDeploy
- windeployqt --release deploy/praaline.exe
- windeployqt --release deploy/pncore.dll
- windeployqt --release deploy/qscintilla2.dll
- 7z a Praaline_win_%arch%.zip .\deploy\*
artifacts:
- path: Praaline_win_$(arch).zip
#- path: build\app\build\plugins
test: off