How about this.

This commit is contained in:
joshaber
2015-12-28 13:16:22 -05:00
parent 11180cea1c
commit 71bf3a7546

View File

@@ -4,7 +4,6 @@ var fs = require('fs');
var verifyRequirements = require('./utils/verify-requirements');
var safeExec = require('./utils/child-process-wrapper.js').safeExec;
var path = require('path');
var _ = require('underscore-plus');
// Executes an array of commands one by one.
function executeCommands(commands, done, index) {
@@ -73,13 +72,15 @@ function bootstrap() {
var dedupeApmCommand = apmPath + ' dedupe' + apmFlags;
var electronVersion = require('../package.json').electronVersion;
var moduleInstallOptions = {env: _.extend({}, process.env, {
// `node-pre-gyp` will look for these when determining which binary to
// download or how to rebuild.
npm_config_target: electronVersion,
npm_config_runtime: 'electron',
npm_config_disturl: 'https://atom.io/download/atom-shell'
})}
var moduleInstallEnv = {};
for (var e in process.env) {
moduleInstallEnv[e] = process.env[e];
}
// `node-pre-gyp` will look for these when determining which binary to
// download or how to rebuild.
moduleInstallEnv.npm_config_target = electronVersion;
moduleInstallEnv.npm_config_runtime = 'electron';
moduleInstallEnv.npm_config_disturl = 'https://atom.io/download/atom-shell';
if (process.argv.indexOf('--no-quiet') === -1) {
buildInstallCommand += ' --loglevel error';