forked from AdunanzA/Tsunami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
70 lines (55 loc) · 2.03 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
build:
verbosity: minimal
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.8/Squirrel.Windows-1.7.8.zip
# project directory
clone_folder: *REPO_DIR
install:
- set QTDIR=C:\Qt\5.8\msvc2015_64
- set PATH=%PATH%;%QTDIR%\bin
before_build:
- ps: $V_MAJ=select-string -Path ".\version.pri" -Pattern "VER_MAJOR ="
- ps: $V_MAJ="$V_MAJ"
- ps: $V_MAJ=$V_MAJ.split()[-1]
- ps: $V_MIN=select-string -Path ".\version.pri" -Pattern "VER_MINOR ="
- ps: $V_MIN="$V_MIN"
- ps: $V_MIN=$V_MIN.split()[-1]
- ps: $V_BUG=select-string -Path ".\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
- cp lib_rel/*.dll release
- cd release
- del /Q *.cpp
- dir
- 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%"
#- mkdir c:\tsunami\Releases
- dir c:\tsunami\Releases
- ps: nuget pack c:\tsunami\Tsunami.nuspec -Version "$V_MAJ.$V_MIN.$V_BUG" -Properties Configuration=Release -BasePath .
- cd "%SQUIRREL_DIR%"
- ps: .\Squirrel.com -r c:\tsunami\Releases --no-msi --releasify c:\tsunami\release\Tsunami."$V_MAJ.$V_MIN.$V_BUG".nupkg
#- ps: rm c:\tsunami\Releases\Setup.exe
cache: Releases
artifacts:
- path: Releases/RELEASES
name: TsuRelFile
- path: Releases/*.nupkg
name: TsuNugets
- path: Releases/Setup.exe
name: TsuSetup
deploy:
provider: Environment
name: biuken ftp