electron-builder: >26.0.1 gets stuck on Windows signing the squirrel exe
Before update (26.0.1) https://github.com/element-hq/element-desktop/actions/runs/13175306673/job/36773250686
After update to 26.0.6 https://github.com/element-hq/element-desktop/actions/runs/13196581336/job/36839196683 it errors when calling upon a vendored signtool.exe from electron-winstaller/electron-windows-sign - the signing we use via eSignerCKA requires a rather modern signtool so we prefer the system one by use of the SIGNTOOL_PATH envvar which electron-builder respects.
electron-win-sign however does not respect it, it instead reads WINDOWS_SIGNTOOL_PATH upon changing to which signing just seems to hang. https://github.com/element-hq/element-desktop/actions/runs/13197854827/job/36843095558
I’m surprised to see D:\a\element-desktop\element-desktop\node_modules\electron-winstaller\vendor\signtool.exe being called given e-b is passing a signing hookFunction so should be using its own signtool handling - https://github.com/electron-userland/electron-builder/blob/f4fc04acf3f206f01a5cf3030ff89684f136a0c0/packages/electron-builder-squirrel-windows/src/SquirrelWindowsTarget.ts#L144-L150
Maybe that if-statement isn’t being entered due to the condition not doing the same thing as the old signing code - looks like other areas in the code just look at options.sign potentially https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/platformPackager.ts#L370
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (14 by maintainers)
I have eSignerCKA working with demo credentials so it should be easier to spin up a minimum repro, but I’m currently sick and have severe brain fog so don’t think I’ll be able to get you a minimum repro.
ED_SIGNTOOL_THUMBPRINT&ED_SIGNTOOL_SUBJECT_NAMEneed passing to electron-builder via something like https://github.com/element-hq/element-desktop/blob/develop/electron-builder.ts#L185-L186Hope that helps @mmaietta