How To Sign Mac App Created Using Electron in Quasar
-
I’ve got my app figured out for PC, iPhone, and Android. Only the Mac version is yet to be released. When I create it on my Mac using the command > quasar build -m electron, I can install the app just fine, but when I try to run it I get an error, “[App] can’t be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information”
I gather this means that I need to sign the app somehow, but how do I do sign it on my Mac? (I’m more of a PC guy.)
-
-
@metalsadman Thanks metalsadmin. I’m still not clear where to add stuff described on those pages. Do I add settings to quasar.conf.js? To package.json? Or do I go directly into src-electron and add them to electron-main.js? It would be great if there was a template somewhere I could reference.
-
@omgwalt sorry but I haven’t tried that myself as I’m no Mac user, imo should be covered in their docs. The builder / packager is set at https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron#Quasar.conf.js. be sure to read the quasar docs counterpart, from the looks of it you’ll be using the builder since packager don’t use signing.
-
Just to compare: Mobile Cordova/Capacitor Quasar apps have a 'how to publish to store" section in the docs. Electron doesn’t… yes I could PR but I have no knowledge of electron
-
@dobbel Agreed. I’ve opened a request for documentation in Quasar’s GitHub issues page.
-
The docs has it, and allocated an object where you can put the config in conf.js file, provided outside link corresponding to packager or bundler.
But yeah, if you guys make it work and want to enhance the doc by adding step by step process, then do file a P.R.