Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac code signing compatibility with @electron/osx-sign 1.0.4 #7317

Closed
mayfield opened this issue Dec 14, 2022 · 5 comments · Fixed by #7351
Closed

Mac code signing compatibility with @electron/osx-sign 1.0.4 #7317

mayfield opened this issue Dec 14, 2022 · 5 comments · Fixed by #7351

Comments

@mayfield
Copy link

  • Electron-Builder Version: 24.0.0-alpha.7
  • Node Version: 16
  • Electron Version: 22.0.0
  • Electron Type (current, beta, nightly): current
  • Target: mac

I'm in the process of updating to electron-builder 24 and having issues with code signing. It looks like EB is using the legacy "identity-validation" property

"identity-validation": false,
which should be camelCase now.

More importantly, while tracking this down, it became clear there is some conflated use of the options.identity string and the return value of the findIdentity function that returns an osx-sign Identity object. In EB versions before 24 the legacy identity-validation=false working properly would mask this for my particular use case.

At this line, I think the identity value should be qualifer instead of the Identity instance.

@mayfield
Copy link
Author

At this line, I think the identity value should be qualifer instead of the Identity instance.

Or perhaps identity: identity ? identity.name : undefined

@mayfield
Copy link
Author

I have this untested patch as an example mayfield@8557a66

I was going to attempt a PR but I failed to achieve success manual or unit testing in a reasonable amount of time. I ended up implementing an afterPack hook in my project instead that monkey patches the current code as follows...

SauceLLC/sauce4zwift@e4e722f

@panther7
Copy link
Contributor

Last worked version is 24.0.0-alpha.5.

@mmaietta
Copy link
Collaborator

mmaietta commented Jan 4, 2023

Thanks for calling this out. Would you be willing to open a PR with the value change?

@filfreire
Copy link
Contributor

Also noticed this in our project, https://github.com/Kong/insomnia/actions/runs/3846215323/jobs/6551824759#step:5:146

⨯ No identity found for signing.  failedTask=build stackTrace=Error: No identity found for signing.
    at signApp (/Users/runner/work/***/***/packages/***/node_modules/@electron/osx-sign/src/sign.ts:360:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at MacPackager.sign (/Users/runner/work/***/***/packages/***/node_modules/app-builder-lib/src/macPackager.ts:324:5)
    at /Users/runner/work/***/***/packages/***/node_modules/app-builder-lib/src/macPackager.ts:452:9

We are using "app-builder-lib": "24.0.0-alpha.8"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants