-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
App rejected when Mac Developer certificate is in keychain #890
Comments
@sethlu First of all, thank you that you added such check (using |
Related: electron/osx-sign#100 |
Auto update actually works - and it also looks like the app is signed correctly if I run it through RB App Checker. |
Will be fixed tomorrow morning CET. |
Unhandled rejection Error: Exit code: 3. Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache Also mac .app file is crashing. |
@develar this got broken again somewhere between 8.2.0 (working) and 8.6.0 (broken). 8.2.0 was fine with my self-signed certificate (passed in |
@salomvary Because changes were reverted — #897 (comment) Will be reapplied soon. |
This reverts commit 03c395d. See electron-userland/electron-builder#890 (comment)
@develar ouch! Thanks anyway :) |
@salomvary Fix reapplied. Version 9.0.0. |
Hey @develar I'm able to code sign my electron app on OSX. Although it says -
Just a little confusion - What process should I follow to code sign my app for production 🤔 |
@akashnimare You use "Mac Developer" cert only if don't have money to became Apple Developer. Otherwise please use certs listed in the https://github.com/electron-userland/electron-builder/wiki/Code-Signing#how-to-export-certificate-on-macos |
* master: feat: electronDownload instead of download electron-userland#921 feat: rename LICENSE from electron dist to LICENSE.electron.txt fix: snap support, desktop integration attempt electron-userland#509 chore: update electron-macos-sign to 1.3.4 fix(mac): App rejected when Mac Developer certificate is in keychain electron-userland#890 feat(deb): Replace ia32 arch name with i386 in package filename feat(linux): lowercased linux executable WIP: snap support electron-userland#509 test: split to small files to make Jest happy feat(linux): Build snap packages for Linux electron-userland#509 test: migrate to Jest
@develar I have an Apple developer account and got this certificate from there only. In this case I don't need to export the certificates and It will be automatically imported and my app will be signed, right? |
@akashnimare not quite understand what do you mean. Yes — if your p12 file contains both private key and cert, you don't need to import it to keychain. |
@develar Running latest electron-builder and getting same problem as original issue creator. Unable to get any more detailed reason from spctl when running on commandline and asking for more verboseness. Packaging for darwin x64 using electron 1.6.2 to dist/mac Error: Failed to pass Gatekeeper: : Error: Command failed: spctl --assess --type execute --verbose --ignore-cache --no-cache /Users/timshnaider/Desktop/Development/electron/electron-simple-updater/example/dist/mac/Simple Updater Example.app Looking for related issues Just noticed my Gatekeeper options on OS X 10.12.4 don't include running apps from Anywhere like Gatekeeper screens from older OS. |
Ran as root 'spctl --master-disable' for time being for testing. |
@TimNZ I don't think a Mac Developer identity will pass the Gatekeeper. Only a valid Developer ID Application or an app re-signed by Apple (from submitting to the Mac App Store) could do so.
|
I just successfully signed one of my electron app to distribute it outside the Mac store. Let me know if you guys need any help. It took me months to completely understand the whole code sign process. |
Nothing more :) |
The question is why electron-builder or electron-osx-sign do this check.... Hmm... Will check. |
@develar As Gatekeeper conflicts with app bundles signed with certs for distribution on the MAS,
Ref: https://github.com/electron-userland/electron-osx-sign |
Developer signing is fine for apps distributed out of stores. The gatekeeper check that electron-builder runs in the pipeline fails though because of it with default OS settings. Running 'spctl --master-disable' gets past that point. electron-builder needs an option to disable setting gatekeeper-assess = true for electron-osx-sign, in macPackager.js |
So — please file new issue, specify version of used electron-builder and please set env DEBUG=electron-builder and attach full log of the terminal output. |
I wanted to get auto updates working by signing the macOS app so I installed Xcode and created a Mac Development certificate in the Preferences/Accounts panel on my Apple ID (don't have a real Developer ID yet). Now electron-builder gives me an error in the build process. If I revoke the certificate the error goes away. It actually creates a working .app, but no .dmg or .zip as before.
The text was updated successfully, but these errors were encountered: