Skip to content
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

Chrome binaries are 600MB when publishing #115

Open
nightblade9 opened this issue Nov 13, 2024 · 0 comments
Open

Chrome binaries are 600MB when publishing #115

nightblade9 opened this issue Nov 13, 2024 · 0 comments

Comments

@nightblade9
Copy link

Hi,

I'm prototyping something like Electron.NET: a Blazor web server with embedded Chromium for the front-end.

As it happens, I'm using the binaries from this repo (chromiumembeddedframework.runtime.win-x64 from NuGet). The binaries available are huge: if you run dotnet publish, the resulting folder is around 600MB. Is it possible to reduce this somehow?

I've taken the hopefully-risk-free steps of deleting interactive_ui_tests.exe (250MB) which looks like some sort of Chromium internal testing tool. I also delete locales, other than en-US, which is the default; this saves around 40MB.

The next biggest candidate, by an order of magnitude, is chrome.exe, weighing in at around 250mb. I thought, after reading #56 , that perhaps we can use a "minimal distribution" of Chromium instead. It looks like that change went in around 2017, though, and is already included, because the NuGet packages are from a couple of weeks ago.

Is there any way to build a smaller, more lightweight version of Chromium? I understood that ElectronJS does this, but their final "hello world" distribution is around 100MB. Mine, even with the shrinkages mentioned, is around 300MB.

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

No branches or pull requests

1 participant