electron / windows-installer

Build Windows Installers for Electron apps
MIT License
1.55k stars 259 forks source link

Issue with windows-sign param throwing error in Electron/windows-installer (by sea-signtool) #508

Open barkinoaa opened 3 months ago

barkinoaa commented 3 months ago

Description

Using the windows-sign parameter in the createWindowsInstaller function of electron/windows-installer, seems to throw an error in SEA_MAIN_SCRIPT. The windows-sign parameter is added in the createWindowsInstaller function here.

However, upon inspection of the source code of the windows-sign module, it appears that it throws an error at SEA_MAIN_SCRIPT, as observed here: SEA_MAIN_SCRIPT - sea.ts. Furthermore, the error message lacks any informative details; instead, it only logs "electron-windows-sign Called with options ..." (refer to sign.ts). It was only after removing these logs that the actual error message became apparent: 'SignTool Error: File not found: windows-sign'."

This issue arises when using hookModulePath.