2018-12-16 16:14:58 +00:00
|
|
|
image: Visual Studio 2017
|
2017-04-19 19:54:15 +00:00
|
|
|
environment:
|
2018-02-19 19:54:37 +00:00
|
|
|
CURL_VERSION: 7.56.1
|
2018-12-16 16:14:58 +00:00
|
|
|
CEF_VERSION: 3.3440.1805.gbe070f9
|
2017-04-19 19:54:15 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- git submodule update --init --recursive
|
2018-12-16 16:14:58 +00:00
|
|
|
- if exist dependencies2017.zip (curl -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -z dependencies2017.zip) else (curl -kLO https://obsproject.com/downloads/dependencies2017.zip -f --retry 5 -C -)
|
2018-02-19 19:54:37 +00:00
|
|
|
- if exist vlc.zip (curl -kLO https://obsproject.com/downloads/vlc.zip -f --retry 5 -z vlc.zip) else (curl -kLO https://obsproject.com/downloads/vlc.zip -f --retry 5 -C -)
|
2018-12-16 16:14:58 +00:00
|
|
|
- if exist cef_binary_%CEF_VERSION%_windows32.zip (curl -kLO https://obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows32.zip -f --retry 5 -z cef_binary_%CEF_VERSION%_windows32.zip) else (curl -kLO https://obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows32.zip -f --retry 5 -C -)
|
|
|
|
- if exist cef_binary_%CEF_VERSION%_windows64.zip (curl -kLO https://obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows64.zip -f --retry 5 -z cef_binary_%CEF_VERSION%_windows64.zip) else (curl -kLO https://obsproject.com/downloads/cef_binary_%CEF_VERSION%_windows64.zip -f --retry 5 -C -)
|
|
|
|
- 7z x dependencies2017.zip -odependencies2017
|
2017-04-19 19:54:15 +00:00
|
|
|
- 7z x vlc.zip -ovlc
|
2018-12-16 16:14:58 +00:00
|
|
|
- 7z x cef_binary_%CEF_VERSION%_windows32.zip -oCEF_32
|
|
|
|
- 7z x cef_binary_%CEF_VERSION%_windows64.zip -oCEF_64
|
|
|
|
- set DepsPath32=%CD%\dependencies2017\win32
|
|
|
|
- set DepsPath64=%CD%\dependencies2017\win64
|
2017-04-19 19:54:15 +00:00
|
|
|
- set VLCPath=%CD%\vlc
|
2018-12-16 16:14:58 +00:00
|
|
|
- set QTDIR32=C:\Qt\5.11.1\msvc2015
|
|
|
|
- set QTDIR64=C:\Qt\5.11.1\msvc2017_64
|
|
|
|
- set CEF_32=%CD%\CEF_32\cef_binary_%CEF_VERSION%_windows32
|
|
|
|
- set CEF_64=%CD%\CEF_64\cef_binary_%CEF_VERSION%_windows64
|
2017-04-19 19:54:15 +00:00
|
|
|
- set build_config=RelWithDebInfo
|
2018-12-16 16:14:58 +00:00
|
|
|
- mkdir build build32 build64
|
2017-04-19 19:54:15 +00:00
|
|
|
- cd ./build32
|
2018-12-16 16:14:58 +00:00
|
|
|
- cmake -G "Visual Studio 15 2017" -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DBUILD_CAPTIONS=true -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_32% ..
|
2017-04-19 19:54:15 +00:00
|
|
|
- cd ../build64
|
2018-12-16 16:14:58 +00:00
|
|
|
- cmake -G "Visual Studio 15 2017 Win64" -DCOPIED_DEPENDENCIES=false -DCOPY_DEPENDENCIES=true -DBUILD_CAPTIONS=true -DCOMPILE_D3D12_HOOK=true -DBUILD_BROWSER=true -DCEF_ROOT_DIR=%CEF_64% ..
|
2017-04-19 19:54:15 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build32\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
- call msbuild /m /p:Configuration=%build_config% C:\projects\obs-studio\build64\obs-studio.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- C:\projects\obs-studio\CI\before-deploy-win.cmd
|
|
|
|
|
|
|
|
deploy_script:
|
|
|
|
- ps: Push-AppveyorArtifact "build.zip" -FileName "$(git describe).zip"
|
|
|
|
|
|
|
|
test: off
|
|
|
|
|
|
|
|
cache:
|
2018-12-16 16:14:58 +00:00
|
|
|
- dependencies2017.zip
|
2017-04-19 19:54:15 +00:00
|
|
|
- vlc.zip
|
2018-12-16 16:14:58 +00:00
|
|
|
- 'cef_binary_%CEF_VERSION%_windows32.zip'
|
|
|
|
- 'cef_binary_%CEF_VERSION%_windows64.zip'
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
|
|
|
url:
|
|
|
|
secure: k1kpaz4CB5Rg5a3MTb4XKnd76fJ+9ozz5RACVnNjdgmAjA1OSssZ6LZ3g0NGfzc/
|
|
|
|
headers:
|
|
|
|
Authorization:
|
|
|
|
secure: A0PBwpHtsYzBOuye1EeS0fl562T0NZEInwZp0ZVER1wLQSeE6gzWGrRo2a0E7hii
|