Start on signing

This commit is contained in:
Antonio Scandurra 2016-08-01 14:32:22 +02:00
parent 6ad39b73fa
commit 6e75c99ea2

View File

@ -21,6 +21,7 @@ module.exports = function () {
'dir': CONFIG.intermediateAppPath,
'icon': path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.icns'),
'out': CONFIG.buildOutputPath,
'osx-sign': getSignOptions(),
'overwrite': true,
'platform': process.platform,
'version': CONFIG.appMetadata.electronVersion
@ -87,6 +88,14 @@ function buildAsarUnpackGlobExpression () {
return `{${unpack.join(',')}}`
}
function getSignOptions () {
if (process.env.CI) {
return {identity: 'GitHub'}
} else {
return null
}
}
function runPackager (options) {
return new Promise((resolve, reject) => {
electronPackager(options, (err, packagedAppPaths) => {