Set ATOM_RESOURCE_PATH in install-atom-dependencies.js

This commit is contained in:
Antonio Scandurra
2016-08-02 14:46:03 +02:00
parent 17ec08067b
commit 5ff7af84b6

View File

@@ -7,6 +7,8 @@ const CONFIG = require('../config')
module.exports = function () {
const installEnv = Object.assign({}, process.env)
// Set resource path so that apm can load metadata related to Atom.
installEnv.ATOM_RESOURCE_PATH = CONFIG.repositoryRootPath
// Set our target (Electron) version so that node-pre-gyp can download the
// proper binaries.
installEnv.npm_config_target = CONFIG.appMetadata.electronVersion;