mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #255 from jpiepkow/master
added force option for electron-download inside install.js
This commit is contained in:
@@ -59,6 +59,8 @@ If you want to change the architecture that is downloaded (e.g., `ia32` on an
|
||||
npm install --arch=ia32 electron
|
||||
```
|
||||
|
||||
If you need to force a re-download of the asset and the SHASUM file set the `force_no_cache` enviroment variable to true.
|
||||
|
||||
## About
|
||||
|
||||
Works on Mac, Windows and Linux OSes that Electron supports (e.g. Electron
|
||||
|
||||
@@ -29,6 +29,7 @@ download({
|
||||
platform: process.env.npm_config_platform,
|
||||
arch: process.env.npm_config_arch,
|
||||
strictSSL: process.env.npm_config_strict_ssl === 'true',
|
||||
force: process.env.force_no_cache === 'true',
|
||||
quiet: ['info', 'verbose', 'silly', 'http'].indexOf(process.env.npm_config_loglevel) === -1
|
||||
}, extractFile)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user