forked from Automattic/simplenote-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
76 lines (67 loc) · 2.28 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
environment:
CSC_ENC_KEY:
secure: ef2yQX3A9dZPQzS6r7oY7pUtzK/ICiUUDZZsh/K7eT59a4BVdxqCfIZU812MmqQHK/iC4cYLdTW+tWHrq9bJquzQgHGjgB0cTBwS9KUjyOg=
CSC_KEY_PASSWORD:
secure: Sz53shy7P4kPzBKa9shHTw==
GH_TOKEN:
secure: m2UKPC/0BUlPZ63dLNIbuoFRNW448BzVrlW6TnjtoLtXCqY+lz9+aKTP4miCwQEy
APPVEYOR_RDP_PASSWORD:
secure: G+yYok+QzBzcrkdhtx+UC4vjyU0kSlWRQ+l+iooLV7o=
CSC_LINK: .\resources\certificates\win.p12
image: Visual Studio 2017
configuration:
- Default
- AppX-WindowsStore
- AppX-Testing
install:
- ps: Install-Product node 10
- cinst make
- npm ci
for:
# default build / .exe / signed
- matrix:
only:
- configuration: Default
before_build:
- openssl aes-256-cbc -d -in .\resources\certificates\win.p12.enc -out %CSC_LINK% -k "%CSC_ENC_KEY%"
- openssl aes-256-cbc -d -in .\resources\secrets\config.json.enc -out .\config.json -k "%CSC_ENC_KEY%"
build_script:
- make build
- make test
- npx electron-builder --win
# Windows Store build / .appx / unsigned
- matrix:
only:
- configuration: AppX-WindowsStore
before_build:
- openssl aes-256-cbc -d -in .\resources\secrets\config.json.enc -out .\config.json -k "%CSC_ENC_KEY%"
skip_non_tags: true
environment:
CSC_LINK: ""
build_script:
- make build
- make test
- npx electron-builder --win --config=./electron-builder-appx.json
# Windows Store test build / .appx / signed
- matrix:
only:
- configuration: AppX-Testing
before_build:
- openssl aes-256-cbc -d -in .\resources\certificates\win.p12.enc -out %CSC_LINK% -k "%CSC_ENC_KEY%"
- openssl aes-256-cbc -d -in .\resources\secrets\config.json.enc -out .\config.json -k "%CSC_ENC_KEY%"
build_script:
- make build
- make test
- npx electron-builder --win --config=./electron-builder-appx.json -p never
artifacts:
- path: release\*.exe
- path: release\*.appx
- path: release\*.yml
cache:
- node_modules
- '%APPDATA%\npm-cache'
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
# RDP Debug mode
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))