提交 7e70dc1a 编写于 作者: J Joao Moreno

tfs: fix windows build

上级 1cc1b75d
......@@ -9,8 +9,7 @@ Param(
# 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
"machine monacotools.visualstudio.com password ${vsoPAT}" | Out-File "$env:USERPROFILE\_netrc" -Encoding ASCII
"machine monacotools.visualstudio.com password ${vsoPAT}" | Out-File "$env:HOME\_netrc" -Encoding ASCII
# Set the right architecture
$env:npm_config_arch="$arch"
......
# stop when there's an error
$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"
New-Item -Path "$env:npm_config_cache" -Type directory -Force | out-null
}
# throw when a process exits with something other than 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册