Executable not being signed when using @electron-forge/maker-squirrel
See original GitHub issuePre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.0.0-beta.65
Electron version
v19.0.7
Operating system
Windows 10
Last known working Electron Forge version
No response
Expected behavior
The .exe file should be signed with the certificate that was configured inside forge.config.js
Actual behavior
the .exe gets generated but it isn’t signed
Steps to reproduce
Configure the certificate inside forge.config.js
like:
{
name: "@electron-forge/maker-squirrel",
config: {
name: "myapp",
certificateFile: "./certificate.pfx",
certificatePassword: "password"
}
}
then run electron-forge make
Additional information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Executable not being signed when using @electron-forge ...
I see what's the issue, sign command does not executed if there is not password in the emaker-squirrel config. if you read my...
Read more >Squirrel.Windows - Electron Forge
Create a Windows installer for your Electron app using Electron Forge. ... Squirrel.Windows is a no-prompt, no-hassle, no-admin method of installing Windows ...
Read more >Electron Forge stuck on squirrel - Stack Overflow
An application file appears in my out > win32-x64 folder but it's not an .exe file. I also have a random out >...
Read more >Packaging Your Application | Electron
In order for your application to be trusted by the user's system, you need to digitally certify that the distributable is authentic and...
Read more >A real example of building Electron app - Medium
So we need to import Electron and the package tool Forge into an existing React app. First, let's assume the React app has...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see! Sorry, oversight by me, forgot about that part of your previous comment. Happy it was fixed!
@georgexu99 , yes the path looks exactly the same , this is mine:
C:\path\to\my-app\out\make\squirrel.windows\x64\my-app.exe
the workaround for this issue is like this:
signtool sign /tr http://timestamp.sectigo.com /td sha256 /fd sha256 /a "my-app.exe"
How to reproduce ?
basically , create a new project with this command:
yarn create electron-app my-app --template=typescript-webpack
add a certificate to the root folder eg: certificate.pfx from sectigo
add those keys to package.json:
yarn electron-forge make