diff --git a/build.py b/build.py index 08be71b9..5c6d0011 100755 --- a/build.py +++ b/build.py @@ -1521,6 +1521,10 @@ def copyWxDlls(options): cairo_root = os.path.join(phoenixDir(), 'packaging', 'msw-cairo') dlls += glob.glob(os.path.join(cairo_root, arch, 'bin', '*.dll')) + # And the webview2 (MS EDGE) DLL + wv2_root = os.path.join(phoenixDir(), 'packaging', 'msw-webview2') + dlls += glob.glob(os.path.join(wv2_root, arch, '*.dll')) + # For Python 3.5 and 3.6 builds we also need to copy some VC14 redist DLLs. # NOTE: Do it for 3.7+ too for now. But when we fully switch over to VS 2017 # this may need to change. See notes in wscript about it. diff --git a/packaging/msw-webview2/README.txt b/packaging/msw-webview2/README.txt new file mode 100644 index 00000000..9a369b04 --- /dev/null +++ b/packaging/msw-webview2/README.txt @@ -0,0 +1,17 @@ + +msw-webview2 +------------ + +This folder contains the DLLs used to interface with the Microsoft Edge browser +and use it as a backend for wx.html2.WebView. The appropriate architecture +version of the DLL will be copied into the wx package folder at build time. + +The original copies of the DLLs can be found in the WebView2 SDK nuget: + + https://www.nuget.org/packages/Microsoft.Web.WebView2 + + +The current version of Microsoft.Web.WebView2 being used here is 0.9.622.11. +Note that it may be necessary to have the Beta Channel version of Microsoft Edge +installed for this to work. + diff --git a/packaging/msw-webview2/x64/WebView2Loader.dll b/packaging/msw-webview2/x64/WebView2Loader.dll new file mode 100644 index 00000000..6f3eed48 Binary files /dev/null and b/packaging/msw-webview2/x64/WebView2Loader.dll differ diff --git a/packaging/msw-webview2/x86/WebView2Loader.dll b/packaging/msw-webview2/x86/WebView2Loader.dll new file mode 100644 index 00000000..2bace302 Binary files /dev/null and b/packaging/msw-webview2/x86/WebView2Loader.dll differ