electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Cannot code sign on Windows arm64

Open agarny opened this issue 5 months ago • 8 comments

electron-builder downloads https://npmmirror.com/mirrors/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.7z to get the version of SignTool that is to be used to code sign on Windows. SignTool can then be found at windows-10\x64\signtool.exe. This is the version needed to code sign on Windows x64.

However, if you want to code sign on Windows arm64 then electron-builder will look for SignTool at windows-10\arm64\signtool.exe (C:\Users\runneradmin\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0\windows-10\arm64\signtool.exe to be more precise) and it will fail since there is no arm64 version of SignTool in winCodeSign 2.6.0.7.

It would be nice to have winCodeSign updated to include an arm64 version of SignTool. Right now, I do:

curl -L https://npmmirror.com/mirrors/electron-builder-binaries/winCodeSign-2.6.0/winCodeSign-2.6.0.7z -o winCodeSign.7z
7z x winCodeSign.7z -oC:\Users\runneradmin\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0
cd C:\Users\runneradmin\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0\windows-10
mv x64 arm64

to get around this limitation, but this is clearly neither great nor a longterm solution.

agarny avatar Jul 01 '25 02:07 agarny

Quick update here: I'm working on providing an arm64 version of SignTool in upstream project electron-builder-binaries

mmaietta avatar Jul 11 '25 16:07 mmaietta

Great, thanks @mmaietta. 👍

agarny avatar Jul 11 '25 21:07 agarny

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days.

github-actions[bot] avatar Aug 11 '25 00:08 github-actions[bot]

Just preventing the bot from closing this issue. @mmaietta

agarny avatar Aug 13 '25 11:08 agarny

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days.

github-actions[bot] avatar Sep 13 '25 00:09 github-actions[bot]

Again, just preventing the bot from closing this issue. :)

agarny avatar Sep 13 '25 01:09 agarny

Just ran into this issue today, thank for offering up a solution.

Everyone that signs a windows application on a mac with parallels will hit this proble unless they are on an old Intel based mac.

devYonz avatar Nov 26 '25 18:11 devYonz

I think I was doing work on this in https://github.com/electron-userland/electron-builder-binaries/pull/72 but had to pause it. I'll try and revisit it again, the PR is super out of date from the upleveled CI/CD pipeline

mmaietta avatar Nov 27 '25 02:11 mmaietta