Windows
This page has miscellaneous guides related to developing Wails applications for Windows.
Handling the WebView2 Runtime Dependency
Wails applications built for Windows have a runtime requirement on the Microsoft WebView2 Runtime. Windows 11 will have this installed by default, but some machines won't. Wails offers an easy approach to dealing with this dependency.
By using the -webview2 flag when building, you can decide what your application will do when a suitable runtime is not detected (including if the installed runtime is too old). The four options are:
- Download
- Embed
- Browser
- Error