electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.47k stars 1.72k forks source link

Sha256 Error on Installer #8184

Open Yackob234 opened 2 months ago

Yackob234 commented 2 months ago

Running into this error when attempting to sign my application with SafeNet EV Code Sign

Exit code: 1. Command failed: C:\Users\me\AppData\Local\electron-builder\Cache\winCodeSign\winCodeSign-2.6.0\windows-10\x64\signtool.exe sign /t http://timestamp.digicert.com /sha1 MYHEXCODE /s My /d App Name /du https://github.com/Company/AppName /debug C:\Users\me\Documents\company\AppName\dist\App Name-Setup.exe
SignTool Error: The file is being used by another process.
SignTool Error: An error occurred while attempting to sign: C:\Users\me\Documents\company\AppName\dist\App Name-Setup.exe

Since the setup.exe is being created by electron-builder, I'm not sure what other process the file could be used by. The result was a successful build, everything was double signed expect for the setup.exe, which was only has sha1.

Also running into the same issue occasionally with __uninstaller-nsis-my-app.exe, which causes it to fail entirely, but rerunning it a few times gets rid of the uninstaller-nsis failure.

github-actions[bot] commented 2 weeks ago

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