diff --git a/src/winetricks b/src/winetricks index 736c137a3..0812cfd7b 100755 --- a/src/winetricks +++ b/src/winetricks @@ -14092,6 +14092,35 @@ load_webio() w_override_dlls native,builtin webio } +#---------------------------------------------------------------- + +w_metadata webview2 dlls \ + title="MS WebView 2" \ + publisher="Microsoft" \ + year="2024" \ + media="download" \ + installed_file1="${W_PROGRAMS_WIN}/Microsoft/EdgeWebView/Application/129.0.2792.65/msedge.dll" + +load_webview2() +{ + # https://developer.microsoft.com/en-us/microsoft-edge/webview2/ + if [ "${W_ARCH}" = "win64" ]; then + w_download https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/2e372271-55ba-41c0-89b9-dfc306dee437/MicrosoftEdgeWebView2RuntimeInstallerX64.exe + _W_installer="MicrosoftEdgeWebView2RuntimeInstallerX64.exe" + else + w_download https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/f0af166f-1b7e-44dc-a91b-59a1c4e3f80d/MicrosoftEdgeWebView2RuntimeInstallerX86.exe + _W_installer="MicrosoftEdgeWebView2RuntimeInstallerX86.exe" + fi + + # Seeing a crash that looked like corefonts, but arial didn't help + # w_call arial + + # The full installer is stil ltrying to cehck for updates, so probably need some flag here + # Also quiet options + w_try "${WINE}" "${W_CACHE}/${W_PACKAGE}/${_W_installer}" + + # FIXME: msedgewebview2.exe needs to be set to Windows 7 for apps using WebView2 +} #----------------------------------------------------------------