forked from RSATom/WebChimera.js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappveyor.yml
60 lines (47 loc) · 2.2 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
os: Visual Studio 2015
environment:
VLC_VER: 2.2.4
matrix:
- npm_config_wcjs_runtime: "electron"
npm_config_wcjs_runtime_version: "latest"
npm_config_wcjs_arch: "ia32"
- npm_config_wcjs_runtime: "electron"
npm_config_wcjs_runtime_version: "latest"
npm_config_wcjs_arch: "x64"
- npm_config_wcjs_runtime: "electron"
npm_config_wcjs_runtime_version: "0.33.9"
npm_config_wcjs_arch: "ia32"
- npm_config_wcjs_runtime: "electron"
npm_config_wcjs_runtime_version: "0.37.6"
npm_config_wcjs_arch: "ia32"
- npm_config_wcjs_runtime: "electron"
npm_config_wcjs_runtime_version: "0.37.8"
npm_config_wcjs_arch: "ia32"
- npm_config_wcjs_runtime: "nw"
npm_config_wcjs_runtime_version: "latest"
npm_config_wcjs_arch: "ia32"
- npm_config_wcjs_runtime: "nw"
npm_config_wcjs_runtime_version: "latest"
npm_config_wcjs_arch: "x64"
install:
- if "%npm_config_wcjs_runtime%"=="electron" if "%npm_config_wcjs_runtime_version%"=="latest" for /f "delims=" %%a in ('npm show electron-prebuilt version') do set npm_config_wcjs_runtime_version=%%a
- if "%npm_config_wcjs_runtime%"=="nw" if "%npm_config_wcjs_runtime_version%"=="latest" for /f "delims=" %%a in ('npm show nw version') do set npm_config_wcjs_runtime_version=%%a
- set BUILD_DIR=%APPVEYOR_BUILD_FOLDER%\build\Release
- set WCJS_ARCHIVE=WebChimera.js_%npm_config_wcjs_runtime%_%npm_config_wcjs_runtime_version%_%npm_config_wcjs_arch%_win.zip
- set WCJS_FULL_ARCHIVE=WebChimera.js_%APPVEYOR_REPO_TAG_NAME%_%npm_config_wcjs_runtime%_v%npm_config_wcjs_runtime_version%_VLC_v%VLC_VER%_%npm_config_wcjs_arch%_win.zip
- git submodule update --init --recursive
- npm install
- 7z a %BUILD_DIR%\%WCJS_ARCHIVE% %BUILD_DIR%\WebChimera.js.node
- if "%APPVEYOR_REPO_TAG%"=="true" appveyor_prepare_full_archive.cmd
build: off
artifacts:
- path: build\Release\*_win.zip
deploy:
provider: GitHub
auth_token:
secure: lJrMMwqwi1suASlU+raxug971oNJjkn8kNu+7sXpDIxSH1wGIKcjeME1TIO1Pu3a
tag: $(APPVEYOR_REPO_TAG_NAME)
release: WebChimera $(APPVEYOR_REPO_TAG_NAME)
artifact: build\Release\$(WCJS_ARCHIVE), build\Release\$(WCJS_FULL_ARCHIVE)
on:
appveyor_repo_tag: true