From 7922082090f79c50ae4277be0f13004dc0bd64e1 Mon Sep 17 00:00:00 2001 From: Jonathan Creekmore Date: Mon, 21 Dec 2015 11:28:03 -0600 Subject: [PATCH] Allow specifying StrictSSL in the NPM config file The standard way of specifying whether you want strict-ssl or not is to add an entry into your npm config file for strict-ssl. Use that entry (which is passed to the install.js as an environment variable) to set the option for strictSSL in electron-download. --- npm/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/install.js b/npm/install.js index 4a269410eb..0e5b29614d 100755 --- a/npm/install.js +++ b/npm/install.js @@ -36,7 +36,7 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[pla } // downloads if not cached -download({version: version, arch: process.env.npm_config_arch}, extractFile) +download({version: version, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl}, extractFile) // unzips and makes path.txt point at the correct executable function extractFile (err, zipPath) {