How to create a test certificate to sign Electron application

If you use electron-builder and you need to sign your app to test the update process, but you don’t have the Apple Developer account.

  • Keychain Access / Certificate Assistance / Create certificate…
  • Set certificate type to ‘Code signing’ Create your certificate
  • Open certificate and set Trust field to ‘Always trust’ Trust certificate
  • Set env variable export CSC_NAME="Test"
  • Build build --mac
comments powered by Disqus