set npm_config_runtime

This commit is contained in:
Benjamin Pasero 2016-05-03 16:18:56 +02:00
parent 5b7432f85f
commit 8334c89462
2 changed files with 4 additions and 2 deletions

View file

@ -4,8 +4,9 @@ setlocal
set npm_config_disturl="https://atom.io/download/atom-shell"
for /f "tokens=2 delims=:, " %%a in ('findstr /R /C:"\"electronVersion\":.*" %~dp0..\package.json') do set npm_config_target=%%~a
set npm_config_arch="ia32"
set npm_config_runtime="electron"
set HOME=~\.electron-gyp
npm --runtime=electron %*
npm %*
endlocal

View file

@ -24,5 +24,6 @@ mkdir -p $ELECTRON_GYP_HOME
npm_config_disturl=https://atom.io/download/atom-shell \
npm_config_target=$ELECTRON_VERSION \
npm_config_runtime=electron \
HOME=$ELECTRON_GYP_HOME \
npm --runtime=electron $*
npm $*