Export CONFIG.channel instead of getChannel() function

This commit is contained in:
Antonio Scandurra 2016-07-29 16:37:55 +02:00
parent 6f5b284d48
commit d3f0897ca6
3 changed files with 4 additions and 3 deletions

View File

@ -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
}

View File

@ -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')
)
}

View File

@ -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,