karaggeorge / electron-builder-notarize

Notarize Electron applications using electron-builder
MIT License
80 stars 20 forks source link

How to enable notarytool #19

Open lwahonen opened 1 year ago

lwahonen commented 1 year ago

Building packages works, but I get a "notarytool not found, trying legacy."

Notarytool is available: xcrun --find notarytool /Applications/Xcode.app/Contents/Developer/usr/bin/notarytool

I call build via

API_KEY_ID="xxxx" API_KEY_ISSUER_ID="xxxxxx" npm run dist

And package.json has

"afterSign": "electron-builder-notarize",
"mac": {
  "hardenedRuntime": true,
  "target": "dmg",
  "category": "public.app-category.utilities",
  "icon": "allsizes.icns",
  "entitlements": "./build/entitlements.mac.plist",
  "entitlementsInherit": "./build/entitlements.mac.plist"
},
itsdouges commented 1 year ago

This is the line of code that enables it https://github.com/karaggeorge/electron-builder-notarize/blob/master/validate.js#L40

perry-mitchell commented 5 months ago

Having the same issue. notarytool is found (/Applications/Xcode_14.2.app/Contents/Developer/usr/bin/notarytool) but it still logs: notarytool not found, trying legacy.

BitHighlander commented 5 months ago

Im debugging this issue now as well