diff --git a/build/config.js b/build/config.js index b6a6d10b4..0eeb6c783 100644 --- a/build/config.js +++ b/build/config.js @@ -7,6 +7,7 @@ const path = require('path') const childProcess = require('child_process') const appMetadata = require('../package.json') +const channel = getChannel() const repositoryRootPath = path.resolve(__dirname, '..') const buildOutputPath = path.join(repositoryRootPath, 'out') @@ -14,7 +15,7 @@ const intermediateAppPath = path.join(buildOutputPath, 'app') const cachePath = path.join(repositoryRootPath, 'cache') module.exports = { - appMetadata, getAppVersion, getChannel, + appMetadata, channel, repositoryRootPath, buildOutputPath, intermediateAppPath, cachePath } diff --git a/build/lib/copy-assets.js b/build/lib/copy-assets.js index d6aea38a5..b6566fc40 100644 --- a/build/lib/copy-assets.js +++ b/build/lib/copy-assets.js @@ -26,7 +26,7 @@ module.exports = function () { } fs.copySync( - path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.getChannel(), 'png', '1024.png'), + path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'png', '1024.png'), path.join(CONFIG.intermediateAppPath, 'resources', 'atom.png') ) } diff --git a/build/lib/package-application.js b/build/lib/package-application.js index 07113be72..36879a397 100644 --- a/build/lib/package-application.js +++ b/build/lib/package-application.js @@ -19,7 +19,7 @@ module.exports = function () { 'build-version': CONFIG.getAppVersion(), 'download': {cache: CONFIG.cachePath}, 'dir': CONFIG.intermediateAppPath, - 'icon': path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.getChannel(), 'atom.icns'), + 'icon': path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.icns'), 'out': CONFIG.buildOutputPath, 'overwrite': true, 'platform': process.platform,