forked from e8tools/v8unpack
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
56 lines (40 loc) · 1.47 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
version: 3.0.42.{build}
image: Visual Studio 2015
pull_requests:
do_not_increment_build_number: true
clone_depth: 1
environment:
VCDIR: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\
BOOST_ROOT: C:\Libraries\boost_1_60_0
BOOST_LIBRARYDIR: C:\Libraries\boost_1_60_0\lib32-msvc-14.0
BOOST_INCLUDEDIR: C:\Libraries\boost_1_60_0
install:
- cmd: >-
appveyor DownloadFile https://github.com/madler/zlib/archive/v1.2.8.zip -FileName zlib-1.2.8.zip
7z x zlib-1.2.8.zip > NUL
cd zlib-1.2.8
md build
cd build
cmake -DCMAKE_SHARED_LINKER_FLAGS="/NODEFAULTLIB:MSVCRT" -DCMAKE_C_FLAGS_RELEASE="/MT /O2 /Ob2 /D NDEBUG" ..
cmake --build . --config Release --target zlibstatic
copy zconf.h ..
cd ..
cd ..
build_script:
- cmd: >-
"%VCDIR%"\vcvarsall.bat
cmake -G "Visual Studio 14" -DBOOST_ROOT="%BOOST_ROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%" -DBOOST_INCLUDEDIR="%BOOST_INCLUDEDIR%" -DZLIB_LIBRARY=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8\build\Release\zlibstatic.lib -DZLIB_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%\zlib-1.2.8 .
cmake --build . --config Release
after_build:
- cmd: >-
SET PATH=%PATH%;"C:/Program Files (x86)/WiX Toolset v3.11/bin"
candle v8unpack.wxs
light -out v8unpack-%APPVEYOR_BUILD_VERSION%.msi v8unpack.wixobj
choco pack
artifacts:
- path: Release\*.exe
name: v8unpack
- path: v8unpack*.nupkg
- path: v8unpack-*.msi
name: installer
deploy: off