mirror of
https://github.com/atom/atom.git
synced 2026-01-14 09:27:57 -05:00
19 lines
592 B
JavaScript
19 lines
592 B
JavaScript
'use strict';
|
|
|
|
const childProcess = require('child_process');
|
|
|
|
const CONFIG = require('../config');
|
|
|
|
// Recognised by '@electron/get', used by the 'electron-mksnapshot' and 'electron-chromedriver' dependencies
|
|
process.env.ELECTRON_CUSTOM_VERSION = CONFIG.appMetadata.electronVersion;
|
|
|
|
module.exports = function(ci) {
|
|
console.log('Installing script dependencies');
|
|
const npmBinName = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
childProcess.execFileSync(
|
|
npmBinName,
|
|
['--loglevel=error', ci ? 'ci' : 'install'],
|
|
{ env: process.env, cwd: CONFIG.scriptRootPath }
|
|
);
|
|
};
|