This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 809
/
appveyor.yml
61 lines (51 loc) · 2.11 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
59
60
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: 7uEZag5XlmDFGRCYGbD1aZGLtvRns4RA5RDQwle8ZnJ2tLnu95936wovBQt98STwx55Xl6XpTF3oR9RHahPpYRrBJ6XcV9lFmKBvRDqeYGY=
CERT_ENCRYPTION_SALT:
secure: 3nS78UzPBt64VWYzP7JKyrRdzxW0AzhCnxcbLQIPUn6s/2Wg60q6ozAicrx0lGC7svAdQFqaCnNIehBGXtVmjQ==
CERT_PRIVATE_KEY_PASSWORD:
secure: Xi+zjxXImbLqIbAM4Xcnb4Ae+MzUDC6mD9sAje81pGg=
GH_TOKEN:
secure: S+Bnfbb+uco7s2X3jqmfP3vwxLIIZTmNmT0f8y982PaiUQB1AW8YNN7Acpi0JQOi
matrix:
- nodejs_version: 14.21.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
# Apply workaround for git:// packages
- git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- 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'