Skip to content

Commit

Permalink
fix: support installing nightlies on <= 2.0.x (#14224)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Aug 20, 2018
1 parent 3af5fdb commit 85da731
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion npm/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, platformP
process.exit(0)
}

var mirror

if (version.indexOf('nightly') !== -1) {
mirror = 'https://github.com/electron/nightlies/releases/download/v'
}

// downloads if not cached
download({
cache: process.env.electron_config_cache,
Expand All @@ -29,7 +35,8 @@ download({
arch: process.env.npm_config_arch,
strictSSL: process.env.npm_config_strict_ssl === 'true',
force: process.env.force_no_cache === 'true',
quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI
quiet: process.env.npm_config_loglevel === 'silent' || process.env.CI,
mirror
}, extractFile)

// unzips and makes path.txt point at the correct executable
Expand Down

0 comments on commit 85da731

Please sign in to comment.