-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor: improve resource directory handling for macOS #9038
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
base: master
Are you sure you want to change the base?
Conversation
…e language file deletion - Updated `getResourcesDir` to simplify the logic for macOS and Electron-based frameworks. - Introduced `getMacOsElectronFrameworkResourcesDir` to retrieve the correct resources path for Electron frameworks on macOS. - Refactored language file deletion logic to handle multiple directories, enhancing the cleanup process for unused language files.
🦋 Changeset detectedLatest commit: 4c34978 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
How does this reduce app size if "The locales folders under Contents/Resources are all empty, so deleting them does not reduce the size."? Also, we already have |
Sorry for the misunderstanding. Electron Builder currently only deletes the |
There are also
locales
files under the Electron frameworks on macOS. Deleting these can significantly reduce the app size.The
locales
folders underContents/Resources
are all empty, so deleting them does not reduce the size.It has already been tested in production, and deleting the
locales
files inside the Electron frameworks does not cause any issues.