mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-29 09:34:58 +03:00
Start on signing
This commit is contained in:
parent
6ad39b73fa
commit
6e75c99ea2
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user