Windows Webview2 Runtime #736
Replies: 5 comments 15 replies
-
make distribution solution is great idea, the reason using electron is it's very easy from raw code, build and create installer |
Beta Was this translation helpful? Give feedback.
-
I've written some code that queries if the system has webview2 runtime installed and if not, prompt the user whether they want to install it. If they click yes, then the bootstrapper installer is downloaded and executed. If it installs successfully, the application can continue running. This adds a tiny amount of overhead to the app. Do you think this is better than generating a full blown installer? |
Beta Was this translation helpful? Give feedback.
-
Here's the current solution: When you run your app on a machine with no runtime, you get this message: If you click "Ok", then it will download the bootstrapper and run it: Once it is installed, the app will run: It's not 100% what I want and there's a small bug but I think this is a pretty good way to go. |
Beta Was this translation helpful? Give feedback.
-
Here's a comparison of the effect on binary size for different webview2 strategies: Default template with
Perhaps |
Beta Was this translation helpful? Give feedback.
-
I noticed a few things on Windows builds:
Is this a WebView thing? This is all still alpha I'm just more curious what these behaviors are. |
Beta Was this translation helpful? Give feedback.
-
Greetings all!
It's great that we can now target webkit on windows via WebView2. What isn't so great is:
So the big question: Should Wails get involved with the installation of the runtime or should that be a deployment concern for the developer?
Before answering that question, I'd suggest going through this thread where they discuss the issue at length.
One thing that keeps playing on my mind is whether or not Wails should generate an NSIS installer that runs the runtime bootstrapper if none is detected. This is obviously a fair bit of work and a detour from the libraries primary goals so would need help if we decide to do this.
👍 for "let's make a distribution solution"
👎 for "that's a deployment concern for the developer"
Also, please feel free to voice your opinions in comments!
Beta Was this translation helpful? Give feedback.
All reactions