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: kMG4K6eKtrVcehlpLDdxX8DAe1gvzaKcdn0HR2IdtgG4+eFqczuddRdkq18ZSzqeDTA8/CxaY8p13NwRLP0EGNztobwSwE/WKq7Aa+MeRFc=
CERT_ENCRYPTION_SALT:
secure: 2v3yczKKH+sntflfb+0iakdCSb1B4QqNtkzXBe+H3DmWgrPxOAV54fKdOSPKowHDiokPjpDlX7yFpwGxpaO5Mg==
CERT_PRIVATE_KEY_PASSWORD:
secure: 6HPJFbG4UcVgagENR42Pc1bshVrRsoMxt0xDKrR1eCs=
GH_TOKEN:
secure: S+Bnfbb+uco7s2X3jqmfP3vwxLIIZTmNmT0f8y982PaiUQB1AW8YNN7Acpi0JQOi
matrix:
- nodejs_version: 12.9.0
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'