-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: add codesign verification and assessment prior to notarizing #152
Conversation
Merged in the main branch to try to kick CI |
Looks like lint is failing. I also pushed a change to turn an |
@jonluca, I think you need to log out of CircleCI and back in again, then push something to trigger CI (empty commit should do it). This is the CircleCI run associated with your last push. Happens from time to time with CircleCI unfortunately.
|
done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
@jonluca Thanks for adding this 🙇
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This has broken our .pkg signing, it throws an error, where it was working before (Using a patch to sign pkg's and dmg's) |
@DanielMcAssey what is the error? If I'll prep a revert in the meantime though |
So its a non-zero error, error code 1 |
@DanielMcAssey is the patch that you have the same as #154? |
See attachment, pretty much, slight variation, it specifically checks for .dmg and .pkg, instead of doing fs.stat. NOTE: patch below also removes the sig check, temporarily. |
I'm getting the same error for my signed installer ".pkg." ( It looks like codesign cannot verify the signature of an installer package. Without this check, my installer is able to be notarized without a problem. I can verify its signature with This same installer package can be notarized without issue with |
Prior to stapling, we should run an
spctl --assess
andcodesign
check to verify that the stapling will work. This caused major issues for us twice - electron builder would modify some files in the build, and that was causing stapling and notarization to fail. This will verify that the app is signed properly.One potential change is to only run these if stapling fails - open to suggestions on that.