Skip to content

Commit

Permalink
set npm_config_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed May 3, 2016
1 parent 5b7432f commit 8334c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/npm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion scripts/npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $*

0 comments on commit 8334c89

Please sign in to comment.