Code Monkey home page Code Monkey logo

Comments (4)

tuarua avatar tuarua commented on May 16, 2024

The added size is because the webview is essentially a whole web browser based on Chrome on Windows.
Should Microsoft ever add a shared control based on Edge then I would move to that (it's IE9 atm!!)
I use the inbuilt browser on OSX and it is a lot easier to maintain.

Moving dlls around is not as simple as it sounds. it's not AIR specific.

Please see this Microsoft which explains things
Search Path Used by Windows to Locate a DLL

While it may be possible to dynamically load dlls at runtime through a bit of hackery, many of the dlls used are not under my control. They have their own linking defined.
Believe me I have spent much time trying to link the files in the ANE folder.

I've had push-back from people that they have to copy some dlls and package their apps.
It's just part and parcel of developing Windows apps.
And a small price to pay for the fact that you are actually able to run and control Chrome from inside AIR.

from webviewane.

born2net avatar born2net commented on May 16, 2024

I just wanted to say thank you for the amazing support on this open-source product!!!!!!!!!!!!

from webviewane.

tuarua avatar tuarua commented on May 16, 2024

@born2net No problem

from webviewane.

TomByrne avatar TomByrne commented on May 16, 2024

I have messed around with the files and found that I can externalise most of them without issue.

Currently these are the files I'm including in my app:
CefSharp.BrowserSubprocess.Core.dll
CefSharp.BrowserSubprocess.exe
CefSharp.Core.dll
CefSharp.dll
CefSharp.WinForms.dll
CefSharpLib.dll
FreSharp.dll
FreSharpCore.dll
libEGL.dll
Newtonsoft.Json.dll

These files alone only add about 1mb to my app, the rest of the files must be on the system PATH though. I'm confident more of the files could be externalised with more tinkering (e.g. Newtonsoft.Json.dll) but for now this suits my purposes.

I'm not entirely sure when each file is used, so it's not unlikely I've removed something which shouldn't be removed. I'll keep an eye on this and post here if I need to move some files back into the main app.

from webviewane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.