KawAnime/appveyor.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

image: Visual Studio 2017
2019-06-14 12:59:43 +00:00
cache:
- '%USERPROFILE%\.electron'
skip_tags: true
2019-06-14 12:59:43 +00:00
platform:
- x64
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 12 x64
2019-10-31 11:01:27 +00:00
- git submodule update --init --recursive
2019-10-31 11:24:39 +00:00
2020-01-16 21:49:53 +00:00
- curl --output mpv.7z https://mpv.srsfckn.biz/mpv-dev-latest.7z
- 7z x -ompv mpv.7z
2020-01-16 13:30:55 +00:00
- copy mpv\x86_64\mpv-1.dll C:\Windows\system32\
2019-10-31 11:24:39 +00:00
- set ROOT_DIRECTORY=%CD%
- if not defined compiler ( set compiler="" )
- if not defined crypto ( set crypto=built-in )
- if not defined linkflags ( set linkflags="" )
- if not defined include ( set include="" )
2019-11-05 01:34:53 +00:00
- ps: '"using msvc : 14.1 ;`nusing gcc : : : <cxxflags>-std=c++14 ;`n" | Set-Content $env:HOMEDRIVE\$env:HOMEPATH\user-config.jam'
2019-10-31 11:24:39 +00:00
- set BOOST_ROOT=c:\Libraries\boost_1_69_0
2019-10-31 12:44:55 +00:00
- set BOOST_BUILD_PATH=%BOOST_ROOT%\tools\build
2019-11-05 10:02:21 +00:00
- set PATH=c:\msys64\mingw32\bin;%PATH%
2019-10-31 11:24:39 +00:00
- type %HOMEDRIVE%%HOMEPATH%\user-config.jam
2019-11-05 09:45:15 +00:00
- cd %BOOST_BUILD_PATH%
- bootstrap.bat
2019-11-05 09:54:39 +00:00
- .\b2 --prefix=c:\boost-build install
- set "PATH=c:\boost-build\bin;%PATH%"
2019-11-02 01:06:50 +00:00
- cd %BOOST_ROOT%
- b2 cxxstd=14 address-model=64 threading=multi --with-system --with-date_time --toolset=msvc-14.1 link=static runtime-link=shared stage
2019-10-31 12:31:05 +00:00
- cd %APPVEYOR_BUILD_FOLDER%
2019-06-14 12:59:43 +00:00
- npm install
2020-03-29 17:00:09 +00:00
- npm run move:libs
2020-03-29 18:39:32 +00:00
- dir %APPVEYOR_BUILD_FOLDER%\public
2019-06-14 12:59:43 +00:00
2019-11-06 12:11:30 +00:00
build: off
2019-11-06 11:49:49 +00:00
2020-03-29 18:12:10 +00:00
artifacts:
- path: 'public\*.dll'
2020-03-29 19:28:14 +00:00
- path: 'public\*.node'
- path: 'dist\*.exe'
2020-03-29 18:12:10 +00:00
2019-06-14 12:59:43 +00:00
test_script:
2019-07-03 21:37:35 +00:00
- node --version
- npm --version
2019-06-14 12:59:43 +00:00
- npm run lint
2020-03-29 19:28:14 +00:00
- npm run dist:win
2020-03-29 18:39:32 +00:00
# - npm run test
2019-06-14 12:59:43 +00:00
2019-07-20 18:01:26 +00:00
deploy_script:
2020-03-29 18:39:32 +00:00
- IF [%APPVEYOR_REPO_BRANCH%]==[master] npm run publish:win && npm run publish:portable