-
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
fix: Brittle response parsing from notarytool #191
fix: Brittle response parsing from notarytool #191
Conversation
Thanks for taking this on! It's a huge improvement by not truncating or swallowing the non-JSON text. |
I'm not sure what the return code actually tells us. Does a return code of 0 mean notarization succeeded? Does it mean that the request was submitted correctly (and may have failed)? Here are the four cases to consider:
|
From a little testing here's what I found
Yep, seems to be |
5dc95c6
to
195de70
Compare
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.
Looks awesome to me :-)
…n#195) Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
I hope this fix will be released soon, I'm stuck not knowing the cause of the error I get... |
@jonluca could you get this out the door or get another active maintainer's eyes on it please? |
…otarize into connorgmeehan-fix/print-notarize-error
🎉 This PR is included in version 2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Electron builder is not handling responses from notarytool on my device (MacOS Sonoma 14.4.1, XCode 15.2). The issue is it's trying to JSON.parse a string with the value:
Solution
spawn
JSON.parse
fails.Compared log when errors
Previous logs
New logs