chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 278 forks source link

cef package is too large #359

Closed Yiend closed 2 years ago

Yiend commented 2 years ago

The volume of the cef package is too large, which leads to the application, and the overall package volume reaches 400M+. Is there a way to reduce it?

mattkol commented 2 years ago

@tenove maybe, it depends.

Unzipped CEF binaries for v96 is about 315 MB.

This is the current layout: image

So on CEF binaries, you can investigate what files and resources are required for your app and see those you can remove. This wiki should help - https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial.md

For .NET Core/.NET 6 dll files, you can see if you can trim them. There are various options online to do that.

Compression/decompression may be helpful too.

amaitland commented 2 years ago

You don't need cef_sandbox.lib (or any of the lib files). I wouldn't exclude/delete anything else.