I am new to electron and I am getting an unknown publisher error each time I deploy my application on a PC. I have tried disabling User Account Control Settings but it only worked on some windows 10, plus it is not a good way to solve the problem.
And after some research, I found that I can create a self-signed certificate using electron-builder:
electron-builder create-self-signed-cert -p Name
When I am running this cmd I am getting a .pfx file certificate. Now, following this documentation, I know that to sign the app on the build server I need to set CSC_LINK, CSC_KEY_PASSWORD. (how do I set the CSC link and key password? do I add them inside my package.json?)
First I need to export the certificate (do I just upload the certificate to a server?)
Second I need to encode file to base64 (after I uploaded the certificate do I encode it? from .pfx to txt?)
Moreover, is it better to attach the .pfx file to the nsis installer? or just use a server to handle this job?
I am so lost any help would go a long way. thanks for all your support.