Skip to content

Commit

Permalink
webview2: new verb
Browse files Browse the repository at this point in the history
  • Loading branch information
austin987 committed Oct 5, 2024
1 parent 5bfd218 commit eeb1e53
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

#----------------------------------------------------------------

Expand Down

0 comments on commit eeb1e53

Please sign in to comment.