This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
/
appveyor.yml
46 lines (39 loc) · 1.34 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
image: Visual Studio 2017
skip_branch_with_pr: true
environment:
nodejs_version: 10
pfx_secret:
secure: S/Mj90+79mE3WTzcInLLI9L5Dpq25dagZUJ4FuVUZH1phPYvveBdDYKBVoL2nCqtlpVMhm22iv/meRCVptVtSg==
pfx_salt:
secure: /GB+cNivX4FGPXVrCV1pPuXD9urtqh/p2QEirW31/bIjeCJ+JHnxk/VrDvqnFUOc1pD407pqP6ozH2ut2UhQeA==
install:
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- cmd: >-
appveyor-tools\secure-file -decrypt native\windows\signcertfile.pfx.enc -out native\windows\signcertfile.pfx -secret %pfx_secret% -salt %pfx_salt%
IF NOT exist "wix311.exe" ( powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://github.com/wixtoolset/wix3/releases/download/wix3111rtm/wix311.exe', 'wix311.exe')" )
wix311.exe /install /quiet /norestart
npm i
build_script:
- cmd: npm run win32
artifacts:
- path: native\windows\BlockstackSetup\bin\Release\en-us\BlockstackSetup.msi
cache:
- node_modules -> package.json
- wix311.exe
for:
# override settings for `master` and `next` branches to perform signing
-
branches:
only:
- master
- next
after_build:
- ps: Write-Host 'signing MSI file'
- cmd: npm run win32:signMsi
-
branches:
except:
- master
- next
after_build:
- ps: Write-Host 'skipping signing MSI file'