Get the Electron version from the package.

This commit is contained in:
joshaber
2015-12-09 17:04:41 -05:00
parent 9d7095442d
commit b810a8b491
2 changed files with 6 additions and 3 deletions

View File

@@ -64,6 +64,12 @@ function bootstrap() {
process.env.ATOM_RESOURCE_PATH = path.resolve(__dirname, '..');
// `node-pre-gyp` will look for these when determining which binary to
// download or how to rebuild.
process.env.npm_config_target = require('../package.json').electronVersion;
process.env.npm_config_runtime = 'electron';
process.env.npm_config_disturl = 'https://atom.io/download/atom-shell';
var buildInstallCommand = initialNpmCommand + npmFlags + 'install';
var buildInstallOptions = {cwd: path.resolve(__dirname, '..', 'build')};
var apmInstallCommand = npmPath + npmFlags + '--target=0.10.35 ' + 'install';