Skip to content

Commit

Permalink
fail if notarize fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Connoropolous committed Oct 24, 2023
1 parent 475723a commit 774027e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions electron/afterSignHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ module.exports = async function (params) {

console.log(`Notarizing ${appId} found at ${appPath}`)

try {
await notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.APPLE_ID_EMAIL,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
})
console.log(`Done notarizing ${appId}`)
} catch (error) {
console.error('Failed to notarize:', error)
}
await notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.APPLE_ID_EMAIL,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
})
console.log(`Done notarizing ${appId}`)
}

0 comments on commit 774027e

Please sign in to comment.