Open jackfrost2013 opened 4 years ago
Thanks for the report @jackfrost2013, yes this seems a bug due to the path of the signing certificate. I suspect most users don't need to sign the executable, but I'm not sure how to specify a logic to "sign only if a certificate is available".
A workaround would be to remove the certificate reference from https://github.com/uav4geo/GCPEditorPro/blob/master/package.json#L29
It looks like the same thing occurs on macOS Big Sur.
> gcp-editor-pro@1.1.0 dist
> ./node_modules/.bin/electron-builder
• electron-builder version=22.10.5 os=20.3.0
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist/builder-effective-config.yaml
• packaging platform=darwin arch=x64 electron=8.5.5 appOutDir=dist/mac
• Unpacking electron zip zipPath=undefined
• skipped macOS application code signing reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, see https://electron.build/code-signing allIdentities=
0 identities found
Valid identities only
0 valid identities found
⨯ No authentication properties provided (e.g. appleId, appleApiKey) stackTrace=
Error: No authentication properties provided (e.g. appleId, appleApiKey)
at Object.validateAuthorizationArgs (/Users/labmac/programs/GCPEditorPro/node_modules/electron-notarize/src/validate-args.ts:51:9)
at authorizationArgs (/Users/labmac/programs/GCPEditorPro/node_modules/electron-notarize/src/index.ts:43:16)
at /Users/labmac/programs/GCPEditorPro/node_modules/electron-notarize/src/index.ts:78:10
at Generator.next (<anonymous>)
at fulfilled (/Users/labmac/programs/GCPEditorPro/node_modules/electron-notarize/lib/index.js:4:58)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
Is there a similar workaround?
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