Closed SJ-AW closed 7 years ago
Hi,
If that can help with the last electron-builder version when I build my app I have:
Tue, 31 Oct 2017 17:25:16 GMT app:build:webpack-compiler Compilation completed successfully.
electron-builder 19.43.0
Rebuilding native production dependencies for win32:x64
Packaging for win32 x64 using electron 1.7.9 to dist_electron\electron-binaries\win-unpacked
Signing My-App.exe (subject: "CN=My Company SA, O=My Company SA, STREET=street, L=city, S=Hauts-de-Seine, C=FR, OID.1.3.6.1.4.1.361.30.2.4.3=FR, SERIALNUMBER=350 238 061, OID.1.2.3.17=Private Organization", thumbprint: "DC82971FEB42CA84C43EAB6B8A4737D0E485CE3B", store: My (current user))
Tue, 31 Oct 2017 17:27:06 GMT app:bin:deploy:deploy-electron Error: Exit code: 1. Command failed: C:\Users\User\AppData\Local\electron-builder\cache\winCodeSign\winCodeSign-1.9.0\windows-10\x64\signtool.exe sign /tr http://timestamp.comodoca.com/rfc3161 /sha1 DC82971FEB42CA84C43EAB6B8A4737D0E485CE3B /s My /fd sha256 /td sha256 /d My-App /as D:\Projets\MyApp\dist_electron\electron-binaries\win-unpacked\My-App.exe
SignTool Error: An unexpected internal error has occurred.
Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147024846/0x80070032)
SignTool Error: An unexpected internal error has occurred.
at D:\Projets\MyApp\node_modules\builder-util\src\util.ts:117:16
at ChildProcess.exithandler (child_process.js:211:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
From previous event:
at exec (D:\Projets\MyApp\node_modules\builder-util\src\util.ts:85:3)
at VmManager.exec (D:\Projets\MyApp\node_modules\electron-builder\src\vm\vm.ts:12:12)
at D:\Projets\MyApp\node_modules\electron-builder\src\windowsCodeSign.ts:148:12
From previous event:
at doSign (D:\Projets\MyApp\node_modules\electron-builder\out\windowsCodeSign.js:112:22)
at defaultExecutor (D:\Projets\MyApp\node_modules\electron-builder\src\windowsCodeSign.ts:60:12)
at D:\Projets\MyApp\node_modules\electron-builder\src\windowsCodeSign.ts:67:11
From previous event:
at sign (D:\Projets\MyApp\node_modules\electron-builder\out\windowsCodeSign.js:45:21)
at D:\Projets\MyApp\node_modules\electron-builder\src\winPackager.ts:261:15
at next (native)
From previous event:
at WinPackager.doSign (D:\Projets\MyApp\node_modules\electron-builder\out\winPackager.js:390:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\winPackager.ts:249:16
From previous event:
at WinPackager.sign (D:\Projets\MyApp\node_modules\electron-builder\out\winPackager.js:370:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\winPackager.ts:338:16
From previous event:
at WinPackager.signAndEditResources (D:\Projets\MyApp\node_modules\electron-builder\out\winPackager.js:447:11)
at WinPackager.signApp (D:\Projets\MyApp\node_modules\electron-builder\src\winPackager.ts:353:17)
at D:\Projets\MyApp\node_modules\electron-builder\src\platformPackager.ts:209:16
at next (native)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
From previous event:
at WinPackager.doPack (D:\Projets\MyApp\node_modules\electron-builder\out\platformPackager.js:267:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\platformPackager.ts:115:16
at next (native)
From previous event:
at WinPackager.pack (D:\Projets\MyApp\node_modules\electron-builder\out\platformPackager.js:190:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\packager.ts:260:24
From previous event:
at Packager.doBuild (D:\Projets\MyApp\node_modules\electron-builder\out\packager.js:332:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\packager.ts:186:52
at next (native)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
From previous event:
at Packager.build (D:\Projets\MyApp\node_modules\electron-builder\out\packager.js:261:11)
at D:\Projets\MyApp\node_modules\electron-builder\src\builder.ts:283:40
at next (native)
From previous event:
at build (D:\Projets\MyApp\node_modules\electron-builder\out\builder.js:63:21)
at Object.<anonymous> (D:\Projets\MyApp\bin\deploy\deploy-electron\deploy-electron.js:80:28)
at Module._compile (module.js:570:32)
at loader (D:\Projets\MyApp\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (D:\Projets\MyApp\node_modules\babel-register\lib\node.js:154:7)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\Projets\MyApp\bin\deploy\deploy-electron\index.js:2:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
I try on another computer with Windows 7 and I have the same problem. But when I try on a computer with Windows 10, it works like a charm.
Again Thank you for this wonderful project!
Strange, we provide special version of sign tool for win7 but is not used in your case. I will check why soon.
@SJ-AW Please node -e "console.log(require('os').release())"
on your windows 7 machine.
@develar 6.1.7601
Hi,
Since version 19.33.0+, the electron's build doesn't work when is signing my app.
When I try to deploy my app with DEBUG=electron-builder:
The build stop at this point without error's return. When I try this line in cmd, I get:
On https://social.technet.microsoft.com/wiki/contents/articles/15260.windows-update-agent-error-codes.aspx, 0x80070032 -2147024846 ERROR_NOT_SUPPORTED. So the first signature in sha1 work but not the second in sha256.
Electron-builder's versions before 19.33.0 work like a charm, example with 19.32.2:
So I have no idea what can I do to solve this problem?
Thanks very much