Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: Enable hardened runtime for macOS #3383
With the recent release of macOS Mojave, Apple give us the option to upload a macOS app to be notarized to distribute outside the AppStore to don't have any problem with Gatekeeper. I tried to figure out how to enable the hardened runtime for an Electron app but without success, the first option that I think, was entitlements but isn't, so have the option to enable hardened runtime will be a great feature for macOs distribution outside the AppStore.
I'm a web/mobile developer and don't have all the knowledge how is builded electron and if it's possible enable this feature, to I want to be humble and if this options is impossible to implement or crazy, my apologize in advance.
Solution we'd like
I got a
You can try it by changing
Then to sign the app, run:
When it's done uploading it will output a UUID, run this command to check when it's done notarizing (it will also send you an email):
If it succeeded, you can then staple the package with:
The issue now is that the app crashes when signed like that. Here's the dump in case someone finds it handy.
I wonder if it works for anyone else? Will try on a dummy app when I get a chance.
It looks like Hardened Runtime is now supported (electron-userland/electron-osx-sign#176). I haven't tried it in our app yet, but from looking at xamarin/xamarin-macios#4288 I think the
I'm having a problem with my app where when hardenedRuntime is enabled, the app will crash immediately upon launch without any visible error messages. If I launch from the command line I see this: