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

feat: add MemoLazy to fix codeSigningInfo not responding to changed args #8291

Conversation

IsaacAderogba
Copy link
Contributor

@IsaacAderogba IsaacAderogba commented Jul 2, 2024

Designed to fix the issue with codeSigningInfo not working when both mac.cscLink and mas.cscLink are defined with separate values. It currently only creates the codeSigningInfo value once and then reuses that across all other targets. Outlined here #8280.

A simpler approach would be to stop wrapping the execution of codeSigningInfo within the Lazy class, but this PR tries to preserve most of the existing behaviour.

Please close/ignore this if you deem it is working as intended. I can otherwise use patch-package to fix this, without maintaining a forked repo.

Thanks for your time!

Copy link

changeset-bot bot commented Jul 2, 2024

⚠️ No Changeset found

Latest commit: edcbc69

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Jul 2, 2024

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit be8dbd5
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/66888824c9d79500088fbe5b
😎 Deploy Preview https://deploy-preview-8291--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mmaietta
Copy link
Collaborator

mmaietta commented Jul 5, 2024

Made some minor modifications, such as adding deep equals functionality via recursion and a unit test. Also updated winPackager csc signing logic to use the MemoLazy class now since I think it'll run into the same issue when having multiple Window targets.
Largest changes in the PR are just from regenerating the API docs.

Figured we could merge this in to resolve the issue and once the upstream PR is accepted, we can remove the local MemoLazy in favor of upstream.

… certs could be used for different configurations. Adding unit tests
@mmaietta mmaietta force-pushed the fix-unable-to-codesign-multi-targets-#8280 branch from 388805f to be8dbd5 Compare July 5, 2024 23:56
@mmaietta mmaietta merged commit ad668ae into electron-userland:master Jul 6, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants