mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 16:49:38 -05:00
tfs: create env.ps1
This commit is contained in:
@@ -3,23 +3,16 @@ Param(
|
||||
[string]$vsoPAT
|
||||
)
|
||||
|
||||
. .\scripts\env.ps1
|
||||
. .\build\tfs\win32\lib.ps1
|
||||
|
||||
# Create a _netrc file to download distro dependencies
|
||||
# In order to get _netrc to work, we need a HOME variable setup
|
||||
$env:HOME=$env:USERPROFILE
|
||||
|
||||
$env:npm_config_disturl="https://atom.io/download/electron"
|
||||
$env:npm_config_target="1.6.6"
|
||||
$env:npm_config_runtime="electron"
|
||||
$env:npm_config_cache="$HOME/.npm-electron"
|
||||
$env:npm_config_arch="ia32"
|
||||
# mkdir -p "$env:npm_config_cache"
|
||||
|
||||
# Create a _netrc file to download distro dependencies
|
||||
"machine monacotools.visualstudio.com password ${vsoPAT}" | Out-File "$env:USERPROFILE\_netrc" -Encoding ASCII
|
||||
|
||||
step "Install dependencies" {
|
||||
exec { & npm install }
|
||||
exec { & npm install --arch ia32 }
|
||||
}
|
||||
|
||||
$env:VSCODE_MIXIN_PASSWORD = $mixinPassword
|
||||
|
||||
5
scripts/env.ps1
Normal file
5
scripts/env.ps1
Normal file
@@ -0,0 +1,5 @@
|
||||
$env:npm_config_disturl="https://atom.io/download/electron"
|
||||
$env:npm_config_target=(node -p "require('./package.json').electronVersion")
|
||||
$env:npm_config_runtime="electron"
|
||||
$env:npm_config_cache="$HOME/.npm-electron"
|
||||
New-Item -Path "$env:npm_config_cache" -Type directory -Force | out-null
|
||||
Reference in New Issue
Block a user