mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
script/bootstrap: apm prints the current Atom ver
Lets apm know where this repository's Atom metadata is located, so that `apm --version` prints the version of Atom being bootstrapped. Previously, this would print "unknown" if no Atom was installed to the system, or whatever stable version was installed... which was irrelevant info during the bootstrapping process. This should be more straightforward, and less confusing.
This commit is contained in:
@@ -36,10 +36,13 @@ if (process.platform === 'win32') deleteMsbuildFromPath()
|
||||
|
||||
installScriptDependencies(ci)
|
||||
installApm(ci)
|
||||
const apmVersionEnv = Object.assign({}, process.env);
|
||||
// Set resource path so that apm can load Atom's version.
|
||||
apmVersionEnv.ATOM_RESOURCE_PATH = CONFIG.repositoryRootPath;
|
||||
childProcess.execFileSync(
|
||||
CONFIG.getApmBinPath(),
|
||||
['--version'],
|
||||
{stdio: 'inherit'}
|
||||
{stdio: 'inherit', env: apmVersionEnv}
|
||||
)
|
||||
runApmInstall(CONFIG.repositoryRootPath, ci)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user