Skip to content

Commit

Permalink
add notarize step
Browse files Browse the repository at this point in the history
  • Loading branch information
bhoomij committed Oct 25, 2023
1 parent 8f8a641 commit d58572c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"directories": {
"buildResources": "public"
},
"afterSign": "scripts/notarize.js",
"mac": {
"icon": "build/icon.png",
"category": "public.app-category.productivity",
Expand Down
21 changes: 21 additions & 0 deletions scripts/notarize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Based on https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/ */

// eslint-disable-next-line import/no-extraneous-dependencies
const { notarize } = require('electron-notarize')

exports.default = async function notarizing(context) {
const { electronPlatformName, appOutDir } = context
if (electronPlatformName !== 'darwin') {
return
}

const appName = context.packager.appInfo.productFilename

// eslint-disable-next-line no-return-await
return await notarize({
appBundleId: 'com.bitfinex.honey',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLEID,
appleIdPassword: process.env.APPLEIDPASS,
})
}

0 comments on commit d58572c

Please sign in to comment.