-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
30 lines (24 loc) · 804 Bytes
/
build.ps1
File metadata and controls
30 lines (24 loc) · 804 Bytes
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
function Invoke-Bootstrap {
Invoke-RestMethod https://raw.githubusercontent.com/avengineers/bootstrap-installer/v1.16.0/install.ps1 | Invoke-Expression
. .\.bootstrap\bootstrap.ps1
}
## start of script
# Always set the $InformationPreference variable to "Continue" globally,
# this way it gets printed on execution and continues execution afterwards.
$InformationPreference = "Continue"
# Stop on first error
$ErrorActionPreference = "Stop"
Push-Location $PSScriptRoot
Write-Output "Running in ${pwd}"
try {
Invoke-Bootstrap
# Praise our company's proxy setup
$env:PUPPETEER_SKIP_DOWNLOAD = "1"
npm config set strict-ssl false
npm install
}
finally {
Pop-Location
Read-Host -Prompt "Press Enter to continue ..."
}
## end of script