-
Notifications
You must be signed in to change notification settings - Fork 57
Fix About window path #2496
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
Fix About window path #2496
Conversation
📊 Performance Test ResultsComparing 05fc06b vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
epeicher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ivan-ottinger! This works as expected, I can see the correct about window in both development and production builds. LGTM! ![]()
Development version running npm start |
Production version running npm run make |
|---|---|
![]() |
![]() |
sejas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ? path.join( getResourcesPath(), 'src', 'about-menu', 'about-menu.html' ) | ||
| : path.join( getResourcesPath(), 'dist', 'renderer', 'about-menu.html' ); | ||
| if ( process.env.NODE_ENV === 'development' ) { | ||
| return path.join( __dirname, '../../src/about-menu/about-menu.html' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting that the paths work even with the hard-coded slashes (/).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's right. I expected it would not work correctly.




Related issues
Proposed Changes
Testing Instructions
Run
npm startOpen Studio → About WordPress Studio
Verify the About window displays correctly with the icon, version, and links
Run
npm run makethen launch the packaged appOpen Studio → About WordPress Studio
Verify the About window displays correctly
The change should work on both macOS and Windows.
Pre-merge Checklist