Skip to content

Commit

Permalink
notarization uses notarytool now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Connoropolous committed Oct 24, 2023
1 parent c0a7045 commit 475723a
Show file tree
Hide file tree
Showing 3 changed files with 688 additions and 1,383 deletions.
10 changes: 5 additions & 5 deletions electron/afterSignHook.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config()
const fs = require('fs')
const path = require('path')
const electronNotarize = require('electron-notarize')
const { notarize } = require('@electron/notarize')

module.exports = async function (params) {
if (process.platform !== 'darwin') {
Expand All @@ -24,15 +24,15 @@ module.exports = async function (params) {
console.log(`Notarizing ${appId} found at ${appPath}`)

try {
await electronNotarize.notarize({
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(error)
console.error('Failed to notarize:', error)
}

console.log(`Done notarizing ${appId}`)
}
Loading

0 comments on commit 475723a

Please sign in to comment.