-
Notifications
You must be signed in to change notification settings - Fork 35
/
appveyor.yml
38 lines (38 loc) · 1.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
os: Visual Studio 2017
branches:
only:
- release
- master
- dev
cache:
- '%USERPROFILE%\.electron'
environment:
BONJOUR_SDK_HOME: 'C:\\Program Files\\Bonjour SDK'
GH_TOKEN:
secure: YnpSJBnaHBEg7du/NqieQRj7Dyp87cH+l8dxFpoaGtPFBhh9t/Lnq9pjMghP1Qf8
matrix:
- nodejs_version: 18
install:
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
- ps: $fileContent += $env:priv_key.Replace(' ', "`n")
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
- ps: Set-Content packaging\id_rsa $fileContent
- ps: Install-Product node $env:nodejs_version
- set CI=true
- appveyor DownloadFile https://github.com/KhalisFoundation/sttm-desktop/blob/master/assets/Bonjour64.msi?raw=true
- msiexec /i Bonjour64.msi /qn
- del Bonjour64.msi
- appveyor DownloadFile https://github.com/KhalisFoundation/sttm-desktop/blob/master/assets/bonjoursdksetup.exe?raw=true
- bonjoursdksetup.exe /quiet
- del bonjoursdksetup.exe
- npm install -g [email protected]
- set PATH=%APPDATA%\npm;%PATH%
- npm ci
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: false
clone_depth: 50
test_script:
- npm run test && node ./packaging/release --branch=%APPVEYOR_REPO_BRANCH% --platform=win && node ./packaging/release --branch=%APPVEYOR_REPO_BRANCH% --platform=win32