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
Error: Code signature at URL ... did not pass validation: code object is not signed at all #2399
Comments
Squirrel.Mac requires signed application, sorry. For now electron-builder cannot help you here, you have to sign your application if you want to use auto-updates on macOS.
Manually or using electron-builder? |
@develar, I obtained the key (Developer ID Application), then this key was moved to the Keychain access. Then i set CSC_NAME according to the name that appears in the KeyChain access and run electron-builder. |
@KrzysZG37 have you exported all the required Certificates? macOS Development Certificate Make sure you got all of them installed inside the Keychain (in CI case, temp keychain while providing CSC_LINK to the file) |
@KrzysZG37 are you building locally or using a CI server? |
@hgbloch I am building it locally. |
@KrzysZG37 yes, exactly.
|
@KrzysZG37 I don't think the order matters as long all 5 identities are found. check if the application is really signed by executing: |
@hgbloch I check whether my .dmg and .app are signed using the following commands: And all three of them gave me positive results:
However trying to check .zip file (which is the most important here, because autoupdater is unzipping this file during update), gives me the following output:
|
@KrzysZG37 What is the Squirrel.Mac error? |
@hgbloch These errors return during update: |
@hgbloch Fortunately, I found the solution. I had multiple dependencies included in the project (golang server, ffmpeg, AppleScript). It was caused by extra dependency (AppleScript). Saving the file again as application (run only, .app extension) fixed the problem |
What does this mean? What file? I'm having this problem as well |
|
I do not have any such extra dependency, but still, I'm having the same error. Can anyone help me in this. |
For others that might come across this issue... I saw this error using electron-forge - I did have a few native dependencies (like node sqlite) however I didn't have to sign them manually like OP. My issue ended up being that I was trying to add an extra yaml file to my build using the This stackoverflow answer was super helpful in debugging: https://stackoverflow.com/a/54198225/8951999 |
electron-updater
Version: 2.17.6
electron-builder
Version: 19.49.0
Target: dmg, zip
I am currently facing the problem with auto-updater for mac. After successful sign the application via certificate obtained from apple.developer, auto-updater still gives me the same error concerning code signature.
Newest version of the application is uploaded to the S3 server, and auto-updater finds that version correctly.
The text was updated successfully, but these errors were encountered: