forked from stacks-archive/blockstack-browser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
49 lines (39 loc) · 1.43 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
image: Visual Studio 2017
skip_branch_with_pr: true
environment:
nodejs_version: 10
pfx_secret:
secure: S/Mj90+79mE3WTzcInLLI9L5Dpq25dagZUJ4FuVUZH1phPYvveBdDYKBVoL2nCqtlpVMhm22iv/meRCVptVtSg==
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 signcertfile.pfx -secret %pfx_secret%
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
copy native\windows\BlockstackSetup\bin\Release\en-us\BlockstackSetup.msi .\
artifacts:
- path: 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'
- ps: (& @((Resolve-Path -Path "${Env:ProgramFiles(x86)}\Windows Kits\10\bin\10*\x86\signtool.exe").Path)[0] sign /t http://timestamp.verisign.com/scripts/timstamp.dll /n Blockstack /f signcertfile.pfx BlockstackSetup.msi)
-
branches:
except:
- master
- next
after_build:
- ps: Write-Host 'skipping signing MSI file'