Cannot code sign on Windows arm64
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.
Quick update here: I'm working on providing an arm64 version of SignTool in upstream project electron-builder-binaries
Great, thanks @mmaietta. 👍
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.
Just preventing the bot from closing this issue. @mmaietta
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.
Again, just preventing the bot from closing this issue. :)
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.
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