Open alishah730 opened 7 months ago
I have the same issue with:
It all worked fine, right from the beginning. And all of a sudden, without updating electron or any related package, it refuses to sign with the same error. The stupid thing about it is that it does not even give any indication why it fails to sign.
@alishah730 The file it tries to sign does exist. But after the failure, it is immediately removed.
@alishah730 I did try to run the signtool manually, on some other executalbe file and it showed me the following
C:\data\GitHub\collection_manager>C:\data\GitHub\collection_manager\node_modules\electron-winstaller\vendor\signtool.exe sign /a /f "C:\data\GitHub\collection_manager\.cm\collection_manager.pfx" /p "<here comes the password>" C:\data\github\collection_manager\out\collection.manager-win32-x64\collection.manager.exe Done Adding Additional Store SignTool Error: The signer's certificate is not valid for signing. SignTool Error: An error occurred while attempting to sign: C:\data\github\collection_manager\out\collection.manager-win32-x64\collection.manager.exe
So the issue with signing was that the certificate was not valid. I refreshed it and now the signing succeeded.
As mentioned before: the real issue with forge resp. electron-build is that the reason why signing fails is not displayed at all. It would have saved me a few hours of investigation.
@alishah730我确实尝试在其他可执行文件上手动运行 signtool,它显示了以下内容
C:\data\GitHub\collection_manager>C:\data\GitHub\collection_manager\node_modules\electron-winstaller\vendor\signtool.exe sign /a /f "C:\data\GitHub\collection_manager\.cm\collection_manager.pfx" /p "<here comes the password>" C:\data\github\collection_manager\out\collection.manager-win32-x64\collection.manager.exe Done Adding Additional Store SignTool Error: The signer's certificate is not valid for signing. SignTool Error: An error occurred while attempting to sign: C:\data\github\collection_manager\out\collection.manager-win32-x64\collection.manager.exe
因此签名的问题是证书无效。我刷新了它,现在签名成功了。
如前所述:forge 和 electron-build 的真正问题是签名失败的原因根本没有显示。这可以节省我几个小时的调查时间。
Hi, how can I solve this problem?
@liu-jin-yi get a valid certificate. Mine was invalid because it was expired.
我的无效,因为它已经过期了。
I got this error in the jenkins build, but my local build was normal
🤔
This problem is solved
Pre-flight checklist
Electron Forge version
✔ Checking your system 7.3.0
Electron version
v29.0.1
Operating system
Windows 10 Version 10.0.19045 Build 19045
Last known working Electron Forge version
None
Expected behavior
Expected behavior is after running
npm run make
it should produce a signed executableActual behavior
its not creating any signed build and throwing error
Steps to reproduce
npm run make
Additional information
why its trying to sign
C:\Users\ali\AppData\Local\SquirrelTemp\tempa\lib\net45\ffmpeg.dll
which does not exist in my system
here is
forge.config.js