tfs: windows build

This commit is contained in:
Joao Moreno 2017-06-16 11:22:32 +02:00
parent 7e70dc1a47
commit 3462fd14be
2 changed files with 5 additions and 10 deletions

View file

@ -3,13 +3,10 @@ $ErrorActionPreference = 'Stop'
$env:HOME=$env:USERPROFILE
if (Test-Path env:AGENT_WORKFOLDER) {
# will be used by node-gyp
$env:HOME = "${env:AGENT_WORKFOLDER}\home"
New-Item -Path "$env:HOME" -Type directory -Force | out-null
# will be used by npm
$env:npm_config_cache = "${env:AGENT_WORKFOLDER}\npm-cache"
if (Test-Path env:AGENT_HOMEDIRECTORY) {
$env:USERPROFILE="${env:AGENT_HOMEDIRECTORY}"
$env:HOME="${env:AGENT_HOMEDIRECTORY}"
$env:npm_config_cache="${env:AGENT_HOMEDIRECTORY}/.npm-electron"
New-Item -Path "$env:npm_config_cache" -Type directory -Force | out-null
}

View file

@ -1,5 +1,3 @@
$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="${env:USERPROFILE}/.npm-electron"
New-Item -Path "$env:npm_config_cache" -Type directory -Force | out-null
$env:npm_config_runtime="electron"