-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathappveyor.yml
74 lines (60 loc) · 2.17 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
build:
verbosity: minimal
branches:
only:
- master
image: Visual Studio 2015
platform: x64
configuration: Release
test: off
environment:
REPO_DIR: &REPO_DIR c:\tsunami
SQUIRREL_DIR: &SQUIRREL_DIR c:\squirrel
SQUIRREL_URL: https://github.com/Squirrel/Squirrel.Windows/releases/download/1.7.9/Squirrel.Windows-1.7.9.zip
# project directory
clone_folder: *REPO_DIR
install:
- set QTDIR=C:\Qt\5.9\msvc2015_64
- set PATH=%PATH%;%QTDIR%\bin
before_build:
- ps: $V_MAJ=select-string -Path ".\src\version.pri" -Pattern "VER_MAJOR ="
- ps: $V_MAJ="$V_MAJ"
- ps: $V_MAJ=$V_MAJ.split()[-1]
- ps: $V_MIN=select-string -Path ".\src\version.pri" -Pattern "VER_MINOR ="
- ps: $V_MIN="$V_MIN"
- ps: $V_MIN=$V_MIN.split()[-1]
- ps: $V_BUG=select-string -Path ".\src\version.pri" -Pattern "VER_BUGFIX ="
- ps: $V_BUG="$V_BUG"
- ps: $V_BUG=$V_BUG.split()[-1]
- ps: Update-AppveyorBuild -Version "$V_MAJ.$V_MIN.$V_BUG"
build_script:
- appveyor DownloadFile "%TSU_LIB_URL%" -FileName "c:\libraries.7z" && 7z x "c:\libraries.7z" -o"%REPO_DIR%"
- '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64'
- qmake Tsunami.pro
- nmake release
- xcopy runtimes release /E /Y
- cp resources\CHANGELOG.md release
- cd release
- dir
- del /Q *.cpp
- windeployqt --release --no-opengl-sw --no-translations Tsunami.exe
- del /Q libGLESV2.dll libEGL.dll d3dcompiler_47.dll
- appveyor DownloadFile "%SQUIRREL_URL%" -FileName "C:\squirrel.zip" && 7z x "C:\squirrel.zip" -o"%SQUIRREL_DIR%"
- ps: nuget pack C:\tsunami\Tsunami.nuspec -Version "$V_MAJ.$V_MIN.$V_BUG" -Properties Configuration=Release -BasePath .
- cd "%SQUIRREL_DIR%"
- ps: .\Squirrel.exe -r C:\tsunami\Releases --setupIcon=C:\tsunami\images\installer_icon.ico --no-msi --releasify C:\tsunami\release\Tsunami."$V_MAJ.$V_MIN.$V_BUG".nupkg
- ps: Start-Sleep -s 60
#- ps: rm c:\tsunami\Releases\Setup.exe
# cache: Releases
artifacts:
- path: Releases/*.nupkg
name: TsuNugets
- path: Releases/Setup.exe
name: TsuSetup
- path: Releases/RELEASES
name: TsuRelFile
deploy:
- provider: Environment
name: GH
- provider: Environment
name: AdunanzA