question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Executable not being signed when using @electron-forge/maker-squirrel

See original GitHub issue

Pre-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:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
georgexu99commented, Oct 15, 2022

I see! Sorry, oversight by me, forgot about that part of your previous comment. Happy it was fixed!

1reaction
carlos-labradorcommented, Oct 13, 2022

@carlos-labrador Could you please confirm whether you’re using the executable @georgexu99 mentioned above (specifically the one in the make folder)?

@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:

 "name": "@electron-forge/maker-squirrel",
         "config": {
           "name": "my-app",
           "certificateFile": "./certificate.pfx",
           "certificatePassword": ""
         }
  • run yarn electron-forge make
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found