forked from trufflesuite/ganache-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
59 lines (49 loc) · 1.99 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
image:
- Visual Studio 2017
platform:
- x64
# Start builds on tags only
skip_non_tags: true
cache:
- node_modules -> package-lock.json
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
environment:
CERT_ENCRYPTION_KEY:
secure: +XDEI8knAE1BjGyX5zGCR+4X1gQQjOmCL+nASqdAj8PJeRuO/nWA2hk9pzYzO4ejdRQZBbOz0wN+c6gTm9KSS2i9BaZVieuIPF6vlCgcYhE=
CERT_ENCRYPTION_SALT:
secure: IFHYfftML5rlXn+KPvgm6dUgqwwougOEcU3ocXtPTDO0R83vszq52TFyBWsxMu0P2DJaqgLczmM5jYsdfydF0w==
CERT_PRIVATE_KEY_PASSWORD:
secure: Xi+zjxXImbLqIbAM4Xcnb4Ae+MzUDC6mD9sAje81pGg=
GH_TOKEN:
secure: S+Bnfbb+uco7s2X3jqmfP3vwxLIIZTmNmT0f8y982PaiUQB1AW8YNN7Acpi0JQOi
matrix:
- nodejs_version: 12.13.1
install:
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1')) > $null;
appveyor-tools\secure-file -decrypt certs/cert.pfx.enc -secret $env:CERT_ENCRYPTION_KEY -salt $env:CERT_ENCRYPTION_SALT > $null;
Import-PfxCertificate -Password (ConvertTo-SecureString $env:CERT_PRIVATE_KEY_PASSWORD -AsPlainText -Force) -FilePath certs/cert.pfx -CertStoreLocation Cert:\CurrentUser\My > $null;
Remove-Item certs/cert.pfx;
Remove-Item Env:/CERT_ENCRYPTION_KEY;
Remove-Item Env:/CERT_ENCRYPTION_SALT;
Remove-Item Env:/CERT_PRIVATE_KEY_PASSWORD;
}
- ps: Update-NodeJsInstallation $env:nodejs_version x64
- set CI=true
- npm install -g npm@latest
- set PATH=%APPDATA%\npm;%PATH%
- npm ci
matrix:
fast_finish: true
shallow_clone: true
clone_depth: 1
build_script:
- ps: npm run build-windows
artifacts:
- path: 'dist/Ganache-*.appx'
- path: 'dist/Ganache-*-setup.exe'
- path: 'dist/Ganache-*-setup.exe.blockmap'
- path: 'dist/latest.yml'