mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Export CONFIG.channel instead of getChannel() function
This commit is contained in:
parent
6f5b284d48
commit
d3f0897ca6
@ -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
|
||||
}
|
||||
|
@ -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')
|
||||
)
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user