Merge pull request #255 from jpiepkow/master

added force option for electron-download inside install.js
This commit is contained in:
Zeke Sikelianos 2017-06-01 12:31:30 -07:00 коммит произвёл GitHub
Родитель 256b5c8a17 063df81231
Коммит bd8a1c233d
2 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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)