-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Signing and Notarizing macOS #1692
Comments
Also been running into this, haven't found a fix yet :/ EDIT: Rolling back everything electron-forge back to 50, then removing node_modules and yark.lock seems to work |
This didn't work for me. Would you mind posting your package.json here so that I could compare. Thank you. |
@ibnyusuf I had this issue awhile back, make sure you have an application-specific password set up on your account: https://support.apple.com/en-au/HT204397 Also note, it's not a good idea to stick your Apple Id and Password directly into your package.json. Best way to do it is to use keychain aliases, but at the very least use an environment variable. Cheers |
@psukhanov Thank you. The application specific password fixes the notarization issue. However, it does not fix the signing issue. I still receive the message "codesign failed. please retry manually..." message visible in the screenshot above. |
@ibnyusuf that looks like it could be due to this electron-osx-sign bug: electron/osx-sign#196. Setting gatekeeper-assess to false is a workaround in that case. One another thing I noticed (unrelated to your question but maybe you'll find it helpful), electron-notarize will work with your bundled app package, but it won't properly notarize the .dmg output (because it zips it before uploading). Apple's recommendation is to also sign the .dmg and notarize only the outermost container you plan to distribute the app in (in your case, the .dmg). In order to do that, you'll need to insert a |
Since this isn't Electron Forge specific, I'm going to close this. Issues in this issue tracker are meant to track bugs and feature requests that are directly actionable to the Electron Forge codebase and not its dependencies. |
Issue Details
Expected Behavior
On running
npm run make
application is notarized, signed and packagedActual Behavior
Notarization fails, leading to signing failing
Additional Information
Below is contents of package.json:
The text was updated successfully, but these errors were encountered: