mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Start on signing
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user