-
Notifications
You must be signed in to change notification settings - Fork 15k
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
[Feature Request]: use single directory for the chromium engine #28604
Comments
This is basically this issue I believe |
i guess it is similar but this one talks about installing a single chromium installation, the other one is about asar |
What is the motivation? I think the only benefit is saving disk storage and the time it takes to download (in the best-case. In the worst case the user needs to wait even longer to download Chromium after they've already downloaded your app). Here is a list of things that make this a hard problem to solve, there are likely dozens more:
Apart from that it's more complicated than:
It's not literally Chromium. It's ripped apart, stripped down and duct-taped to Node.js. As far as I understand. There are projects such as https://github.com/zserge/lorca that literally use an existing Chrome installation. But this sounds like a maintenance nightmare when you don't know what your users actually run. Don't get me wrong, I like the general idea. But I don't think this is practical at all. And I think it doesn't belong here (the Electron repo) but to some of the repos that are distribution-related such as forge and builder. |
#673 does contain some interesting hints though such as https://www.npmjs.com/package/electron-global |
Please do not file this issue into the Electron Forge issue tracker. I will basically immediately close it as "won't fix" because this is not something that Electron Forge can solve. I'm closing this bug since it's effectively a duplicate. Duplicate of #673 |
Preflight Checklist
I have read the Contributing Guidelines for this project.
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem Description
Electron apps come bundled with chromium for the browser engine. That's fine, but when you have multiple electron apps (i. e. vscode + discord + teams) you are installing duplicates of chromium.
Proposed Solution
when you first launch an electron app, it will check a directory (say, /Users/username/Application\ Support/electron/chromium) for chromium. if it is not found, it will download and install it. if it is found, it will use that.
Alternatives Considered
you could also compile the webapp from javascript to the machine code and eliminate the need for a browser engine entirely, but that would be very hard.
Additional Information
n/a
The text was updated successfully, but these errors were encountered: