positron icon indicating copy to clipboard operation
positron copied to clipboard

Statically linked Webview2Loader on Windows

Open theseyan opened this issue 1 year ago • 0 comments

By default, the program on Windows will not run unless we copy over WebView2Loader.dll from /vendor/Microsoft.Web.WebView2.1.0.902.49/build/native/{arch} into the directory containing the executable. I think it's much better to statically link the loader (/vendor/Microsoft.Web.WebView2.1.0.902.49/build/native/{arch}/WebView2LoaderStatic.lib) to produce a single binary which makes it way easier to deploy and distribute. (I tried to link the static library but failed with a libuuid.a missing error) Is it possible to do so?

theseyan avatar Aug 04 '22 17:08 theseyan