forked from mmatyas/pegasus-frontend
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.appveyor.yml
64 lines (54 loc) · 1.73 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
version: 0.0.{build}
pull_requests:
do_not_increment_build_number: true
os: Visual Studio 2019
branches:
only:
- master
environment:
matrix:
- platform: x86
flavor: msvc
QTDIR: C:\Qt\5.15\msvc2019
MAKE: "nmake /NOLOGO"
- platform: x64
flavor: msvc
QTDIR: C:\Qt\5.15\msvc2019_64
MAKE: "nmake /NOLOGO"
init:
- set PATH=%QTDIR%\bin;%PATH%
- set FVI_HOME=C:\hello\world
before_build:
- IF "%platform%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" x86
- IF "%platform%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- git submodule update --init
build_script:
- md build
- cd build
- qmake ..
- "%MAKE%"
- "%MAKE% check"
- "%MAKE% install"
- windeployqt
--release
--plugindir C:\fvi-launcher\lib
--qmldir ..
--no-translations
--no-opengl-sw
C:\fvi-launcher
- md C:\fvi-launcher\lib\qml
- ps: Get-ChildItem C:\fvi-launcher -Filter 'Qt*' -Directory |
Move-Item -Destination C:\fvi-launcher\lib\qml
- copy ..\README.md C:\fvi-launcher
- copy ..\LICENSE.md C:\fvi-launcher
- git describe --always > tmp_out.txt
- set /p SUFFIX=<tmp_out.txt
- 7z a fvi-launcher_%SUFFIX%_win-%flavor%_%platform%.zip C:\fvi-launcher
artifacts:
- path: build\fvi-launcher_*.zip
on_success:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/Warfork/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 success $env:WEBHOOK_URL
on_failure:
- ps: Invoke-RestMethod https://raw.githubusercontent.com/Warfork/appveyor-discord-webhook/master/send.ps1 -o send.ps1
- ps: ./send.ps1 failure $env:WEBHOOK_URL