set npm_config_runtime
parent
5b7432f85f
commit
8334c89462
|
@ -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
|
||||
|
|
|
@ -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 $*
|
Loading…
Reference in New Issue