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: ensure Fiddle on macOS updates through v0.35.1 #150

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

dsanders11
Copy link
Member

As we switch Fiddle to code signing with certificates from OpenJS, we need to ensure all users on macOS go through version v0.35.1 before updating further since it includes a requirement which allows for the OpenJS team ID to be used to sign Fiddle releases.

@dsanders11 dsanders11 requested a review from a team as a code owner December 7, 2023 01:48
Copy link
Member

@BlackHole1 BlackHole1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/updates.js Outdated
if (
[PLATFORM_ARCH.DARWIN_X64, PLATFORM_ARCH.DARWIN_ARM64].includes(platform) &&
account === "electron" &&
repository === "fiddle" &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally not worth the squeeze, but given the "requests per second" this service handles, you might want to make the simple account check before checking for array inclusion. Then again, V8 might do that for us.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I reordered them, and made the version check the second condition since that should lead to the fewest number of comparisons (assuming they're actually done in this order, as you said) by bailing out early once the majority of clients have updated past v0.35.1.

Copy link
Member

@felixrieseberg felixrieseberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dsanders11 dsanders11 merged commit 867bd1b into main Dec 7, 2023
2 checks passed
@dsanders11 dsanders11 deleted the require-transition-fiddle-release branch December 7, 2023 19:24
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 this pull request may close these issues.

None yet

4 participants