mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
How about this.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user