Skip to content

Enable CLI installation - #1253

Merged
fredrikekelund merged 2 commits into
trunkfrom
f26d/enable-cli-installation
Apr 24, 2025
Merged

Enable CLI installation#1253
fredrikekelund merged 2 commits into
trunkfrom
f26d/enable-cli-installation

Conversation

@fredrikekelund

@fredrikekelund fredrikekelund commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

Related issues

Proposed Changes

Update the conditionals limiting the CLI installation feature so they are also enabled in development and beta builds of Studio.

Testing Instructions

Code review should suffice

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@fredrikekelund
fredrikekelund requested a review from a team April 23, 2025 14:15
@fredrikekelund fredrikekelund self-assigned this Apr 23, 2025
Comment thread src/index.ts Outdated
if ( process.env.NODE_ENV === 'development' ) {
await installCLIOnWindows();
}
await installCLIOnWindows();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we use a feature flag instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could you elaborate? At this point, we're enabling the feature for all users.

From a technical standpoint, we went with the "cheap" process.env.NODE_ENV === 'development' approach previously because the only existing logic we have for loading feature flags lives in the renderer, whereas this feature lives in the main process and runs on initialization.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you elaborate? At this point, we're enabling the feature for all users.

If we remove this code and do not use the concept of feature flag, we will release this feature to all users with the next release on Monday. I wanted to confirm if it's what we are planning.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, I see. I overlooked the fact that the 1.4.1 release target date is next Monday. Give me a minute to think about how to approach this…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've added a feature gate based on the app version that enables the CLI installation for development and beta builds.

@gcsecsey gcsecsey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the detailed reasoning behind these changes above. 🙌

@nightnei nightnei left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

@fredrikekelund
fredrikekelund merged commit 65e9e61 into trunk Apr 24, 2025
@fredrikekelund
fredrikekelund deleted the f26d/enable-cli-installation branch April 24, 2025 11:56
@fredrikekelund fredrikekelund mentioned this pull request May 2, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants