forked from OpenNingia/Launchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (71 loc) · 2.6 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
version: 3.0.{build}
image:
- Visual Studio 2017
init:
# Gather some basic build environment details.
- rem set
- dir "%ProgramFiles(x86)%\Microsoft Visual Studio *" /b /o
# - dir "%ProgramFiles%\Microsoft SDKs\Windows" /b /o
- dir "%SystemDrive%\Qt\5.*" /b /o
environment:
VSVER: 14.0 # Visual Studio 2017
BOOST_DIR: C:\Libraries\boost_1_67_0
matrix:
# - QTDIR: C:\Qt\5.11.2\msvc2017
- QTDIR: C:\Qt\5.11.2\msvc2017_64
configuration:
- Debug
- Release
matrix:
fast_finish: true
install:
- '%QTDIR%\bin\qtenv2.bat'
- qmake -v
- set ARCH=x64
- set SETUPOUT=Launchy_Setup
- set ISSO=SETUP.iss
- if %QTDIR:_64=%==%QTDIR% set ARCH=x86
- if %QTDIR:msvc=%==%QTDIR% %make% --version
- if not %QTDIR:msvc=%==%QTDIR% call "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\vcvarsall.bat" %ARCH%
- if %ARCH%==x64 set ISSO=SETUP_x64.iss
- if %ARCH%==x64 set SETUPOUT=Launchy_Setup_x64
- choco install -y InnoSetup
- set PATH=C:\Program Files (x86)\Inno Setup 5;%PATH%
before_build:
# Prepare the out-of-source build directory.
- mkdir %APPVEYOR_BUILD_FOLDER%-build
- cd %APPVEYOR_BUILD_FOLDER%-build
- qmake -tp vc -r -Wall -Wlogic -Wparser CONFIG+=%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%\launchy
build_script:
- msbuild launchy.sln /p:configuration=%CONFIGURATION%
after_build:
- cd %APPVEYOR_BUILD_FOLDER%\launchy\win
- buildTranslations.bat
- xcopy /E /F /I /Y %APPVEYOR_BUILD_FOLDER%-build\%CONFIGURATION% %APPVEYOR_BUILD_FOLDER%\launchy\%CONFIGURATION%
- echo copy "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\redist\1033\vcredist_%ARCH%*" %APPVEYOR_BUILD_FOLDER%\launchy\%CONFIGURATION%
- copy "%ProgramFiles(x86)%\Microsoft Visual Studio %VSVER%\VC\redist\1033\vcredist_%ARCH%*" %APPVEYOR_BUILD_FOLDER%\launchy\%CONFIGURATION%
- cd %APPVEYOR_BUILD_FOLDER%\launchy\%CONFIGURATION%
- windeployqt .
- cd %APPVEYOR_BUILD_FOLDER%\launchy\win\installer
- ISCC %ISSO%
- cd %APPVEYOR_BUILD_FOLDER%\launchy\win\installer\%CONFIGURATION%\
- echo ren %SETUPOUT%.exe %SETUPOUT%-%APPVEYOR_BUILD_VERSION%.exe
- ren %SETUPOUT%.exe %SETUPOUT%-%APPVEYOR_BUILD_VERSION%.exe
- dir %APPVEYOR_BUILD_FOLDER%\launchy\win\installer\%CONFIGURATION%\
artifacts:
- path: launchy/win/installer/%CONFIGURATION%/*.exe
# deploy on bintray
#deploy:
#- provider: BinTray
# username: openningia
# api_key:
# secure: +5ZaU/ubYVQCdXHgtbnmczUoLuDG0KYxZ/yPzi0oblV3DSMfhVhdx0Mb03ZqKKZf
# subject: openningia
# repo: Launchy
# package: LaunchyInstaller
# version: version
# publish: true
# override: true
# explode: true
# fetch repository as zip archive
shallow_clone: true