Try args again.

This commit is contained in:
joshaber
2015-12-28 16:21:37 -05:00
parent bf0f6afe20
commit a7ba6c8638

View File

@@ -71,19 +71,8 @@ function bootstrap() {
var moduleInstallCommand = apmPath + ' install' + apmFlags;
var dedupeApmCommand = apmPath + ' dedupe' + apmFlags;
var moduleInstallEnv = {};
for (var e in process.env) {
// moduleInstallEnv[e] = process.env[e];
}
var electronVersion = require('../package.json').electronVersion;
moduleInstallEnv.npm_config_target = electronVersion;
moduleInstallEnv.npm_config_runtime = 'electron';
moduleInstallEnv.npm_config_disturl = 'https://atom.io/download/atom-shell';
var moduleInstallOptions = {env: moduleInstallEnv};
console.log('env:')
console.log(moduleInstallEnv)
apmFlags += ' --target=' + electronVersion + ' --runtime=electron --dist-url=https://atom.io/download/atom-shell';
if (process.argv.indexOf('--no-quiet') === -1) {
buildInstallCommand += ' --loglevel error';
@@ -113,15 +102,12 @@ function bootstrap() {
{
command: apmPath + ' clean' + apmFlags,
message: 'Deleting old modules...',
options: moduleInstallOptions
},
{
command: moduleInstallCommand,
options: moduleInstallOptions
},
{
command: dedupeApmCommand + ' ' + packagesToDedupe.join(' '),
options: moduleInstallOptions
}
];