mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 21:37:17 +00:00
23 lines
522 B
JavaScript
23 lines
522 B
JavaScript
'use strict'
|
|
|
|
const { notarize } = require('electron-notarize')
|
|
|
|
async function main(context) {
|
|
const { electronPlatformName, appOutDir } = context
|
|
if (electronPlatformName !== 'darwin') {
|
|
return
|
|
}
|
|
|
|
const appName = context.packager.appInfo.productFilename
|
|
const appleId = 'accounts+apple@balena.io'
|
|
|
|
await notarize({
|
|
appBundleId: 'io.balena.etcher',
|
|
appPath: `${appOutDir}/${appName}.app`,
|
|
appleId,
|
|
appleIdPassword: `@keychain:Application Loader: ${appleId}`
|
|
})
|
|
}
|
|
|
|
exports.default = main
|