electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.61k stars 1.74k forks source link

MacOS builds unusable: App is damaged and can't be opened. You should move it to the Bin. #8191

Closed Maxou44 closed 4 months ago

Maxou44 commented 5 months ago

I've developed an electron application, but it seems that the DMG builds I make available through my Github Actions pipeline don't work.

I don't sign the application, I don't have an Apple Developper account, but normally there's just a warning that you can override by pressing CTRL + Clic and “Open”.

When users try to install it but get an error when launching: image

If they build the application on their machine, the DMG is functional, can be installed and the application launches without problems.

My Electron Builder configuration is available here: https://github.com/brick-a-brack/eagle-animation/blob/dev/electron-builder.yaml

Any ideas?

cpvalente commented 5 months ago

I am not related to electron-builder but am here looking for some help with an issue and thought I may help you as well

This is a common and well documented behaviour for apps that have not been notarized https://discussions.apple.com/thread/253714860?sortBy=best

This requirement was introduced in a recent-ish OS and it affects distributions for Apple silicon processors. If you make distributions for old intel processors you will see the previous error "unknown developer".

Your users will still be able to circumvent this by disabling gatekeeper as described in the thread.