提交 3462fd14 编写于 作者: J Joao Moreno

tfs: windows build

上级 7e70dc1a
......@@ -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
}
......
$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
\ No newline at end of file
$env:npm_config_runtime="electron"
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册