Skip to content

Fix regression related to Windows CLI installer#2153

Merged
fredrikekelund merged 1 commit intotrunkfrom
f26d/fix-windows-cli-installer-regression
Dec 1, 2025
Merged

Fix regression related to Windows CLI installer#2153
fredrikekelund merged 1 commit intotrunkfrom
f26d/fix-windows-cli-installer-regression

Conversation

@fredrikekelund
Copy link
Contributor

Related issues

Proposed Changes

In #2041, we changed the CLI installer's behavior on Windows so that it no longer installs automatically when the app starts. Users can now install the CLI through the Studio settings modal.

Unfortunately, my PR also introduced a regression, which is that the %LOCALAPPDATA%\studio\bin\studio.bat script would no longer be updated automatically after Studio updates.

The %LOCALAPPDATA%\studio directory on Windows is structured so that the resources directory lives inside a versioned directory. For example, I have both %LOCALAPPDATA%\studio\app-1.6.4 and %LOCALAPPDATA%\studio\app-1.6.5 on my machine. Every time the app updates, a new directory is created, and we need to update the %LOCALAPPDATA%\studio\bin\studio.bat file to point to the newest directory (see #1152 for the original implementation).

Testing Instructions

Code review should suffice

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested review from a team and nightnei November 28, 2025 13:45
@fredrikekelund fredrikekelund self-assigned this Nov 28, 2025
@github-actions
Copy link
Contributor

📊 Performance Test Results

Comparing b1f78bb vs trunk

site-editor

Metric trunk b1f78bb Diff Change
load 8106.00 ms 9259.00 ms +1153.00 ms 🔴 14.2%

site-startup

Metric trunk b1f78bb Diff Change
siteCreation 13977.00 ms 13983.00 ms +6.00 ms 🔴 0.0%
siteStartup 5947.00 ms 5978.00 ms +31.00 ms 🔴 0.5%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

Copy link
Contributor

@epeicher epeicher left a comment

Choose a reason for hiding this comment

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

LGTM!

} );

/**
* Windows implementation of CLI installation manager
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 The comment is almost the name of the class 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AI 😐

Copy link
Contributor

@bcotrim bcotrim left a comment

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 8e75607 into trunk Dec 1, 2025
10 of 11 checks passed
@fredrikekelund fredrikekelund deleted the f26d/fix-windows-cli-installer-regression branch December 1, 2025 08:15
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.

3 participants