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