Skip to content

Problem with dist.bat electron-build failing #1

Open
@jackfrost2013

Description

@jackfrost2013

When running the dist.bat in an admin cmd on windows 10 electron-build fails. Seems to be an issue with the certificate. Included relevant debug log.
2020-04-28T19_55_34_513Z-debug.log

WARNING in budgets: Exceeded maximum budget for initial-es2015. Budget 2 MB was not met by 372 kB with a total of 2.36 MB.

WARNING in budgets: Exceeded maximum budget for initial-es5. Budget 2 MB was not met by 537 kB with a total of 2.52 MB.

> [email protected] dist C:\Build\GCPEditorPro-master
> electron-builder

  • electron-builder  version=22.5.1 os=10.0.18363
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist\builder-effective-config.yaml
  • packaging       platform=win32 arch=x64 electron=8.2.4 appOutDir=dist\win-unpacked
  • empty password will be used for code signing  reason=CSC_KEY_PASSWORD is not defined
  ⨯ open d:\comodo.pfx: The device is not ready.
  ⨯ Cannot extract publisher name from code signing certificate. As workaround, set win.publisherName. Error: Error: C:\Build\GCPEditorPro-master\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
    at ChildProcess.<anonymous> (C:\Build\GCPEditorPro-master\node_modules\builder-util\src\util.ts:243:14)
    at Object.onceWrapper (events.js:417:26)
    at ChildProcess.emit (events.js:310:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)  stackTrace=
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Error: Cannot extract publisher name from code signing certificate. As workaround, set win.publisherName. Error: Error: C:\Build\GCPEditorPro-master\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           at ChildProcess.<anonymous> (C:\Build\GCPEditorPro-master\node_modules\builder-util\src\util.ts:243:14)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           at Object.onceWrapper (events.js:417:26)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           at ChildProcess.emit (events.js:310:20)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           at maybeClose (internal/child_process.js:1021:16)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        at getCertInfo (C:\Build\GCPEditorPro-master\node_modules\app-builder-lib\src\codeSign\windowsCodeSign.ts:85:11)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dist: `electron-builder`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dist script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions