dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Figure out windows webview2 distribution

Open jkelleyrtp opened this issue 4 years ago • 1 comments

For windows users, they must have webview2. This is not so insurmountable.

https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution

We can either package webview with the app or send along a bootstrapper.

Other apps have done this before, so maybe we can steal some thoughts from them.

What are people's general thoughts regarding webview2 access on Windows? Should we just fallback to MSHTML if the user doesn't have edge installed?

jkelleyrtp avatar Jan 07 '22 08:01 jkelleyrtp

Sometimes we need install application offline, so if there is a way to bundle webview2 into app installer would be great, or bundle application like electron's way?

nyrf avatar Feb 10 '22 15:02 nyrf

It looks like the tauri bundler exposes options for embedding webview2 in the installer: https://docs.rs/tauri-utils/1.4.0/tauri_utils/config/enum.WebviewInstallMode.html. We now expose this as part of the bundler config

ealmloff avatar Aug 02 '23 16:08 ealmloff

One remaining issue is that the configuration in Dioxus.toml is not on par with that documented in tauri bundler. As dioxus uses toml for configuration, the Option<PathBuf> makes no sense in wix.language as we cannot provide a null value in toml. What do you think about reuse tauri_utils::config::WixLanguage, or even the whole tauri_utils::config::BundleConfig directly in our configuration?

heyrict avatar Aug 03 '23 09:08 heyrict