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 binraies are 600MB when publishing app #93

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

Chrome binraies are 600MB when publishing app #93

nightblade9 opened this issue Nov 18, 2024 · 0 comments

Comments

@nightblade9
Copy link

nightblade9 commented Nov 18, 2024

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've read that it might be possible to use some sort of minimal version of Chromium, although I think that means a custom build of their source.

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.

Back this issue
Back this issue

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