Skip to content

Conversation

michalzaq12
Copy link
Contributor

After the Get-AuthenticodeSignature command fails, in the error handler there is an additional ConvertTo-Json test command that should be called in the same way as Get-AuthenticodeSignature. Without this, Get-AuthenticodeSignature could fail simply due to the workarounds used (using shell:true chcp 65001 >NUL #7230 and resetting PSModulePath #8051), which is unintended behavior.

After this fix, when the workarounds fail, the ConvertTo-Json test command will also fail (with the message Ignoring signature validation due to unsupported PowerShell version) and the update will be installed.

Copy link

changeset-bot bot commented Aug 1, 2025

🦋 Changeset detected

Latest commit: d62549a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
electron-updater Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants