5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 00:29:36 +08:00
wails/v2/internal/frontend/desktop/windows/go-webview2
Pierre Joye f4adff1cb3
#1057 expose ZoomFactor get/set and add the respective windows only options (#1463)
* #1057 expose ZoomFactor get/set and add the respective windows only options

* Remove debug log, use IsZoomControlEnabled as well

* use math.float to/from 64bits functions instead

* Add new windows options ZoomFactor and IsZoomControlEnabled doc

* Grammar

* Update options.mdx

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-10-14 08:46:14 +11:00
..
internal/w32 Fix up dev. Pull in go-webview and winc 2022-03-29 21:45:16 +11:00
pkg/edge #1057 expose ZoomFactor get/set and add the respective windows only options (#1463) 2022-10-14 08:46:14 +11:00
webview2loader [webviewloader] Use go implementation to retrieve the version of a fixed runtime (#1790) 2022-08-27 09:29:09 +10:00
webviewloader [webviewloader] Use go implementation to retrieve the version of a fixed runtime (#1790) 2022-08-27 09:29:09 +10:00
LICENSE Fix up dev. Pull in go-webview and winc 2022-03-29 21:45:16 +11:00
README.md Remove unused directories + tidy up 2022-03-29 21:47:26 +11:00

go-webview2

This is a proof of concept for embedding Webview2 into Go without CGo. It is based on webview/webview and provides a compatible API.

Notice

Because this version doesn't currently have an EdgeHTML fallback, it will not work unless you have a Webview2 runtime installed. In addition, it requires the Webview2Loader DLL in order to function. Adding an EdgeHTML fallback should be technically possible but will likely require much worse hacks since the API is not strictly COM to my knowledge.

Demo

For now, you'll need to install the Webview2 runtime, as it does not ship with Windows.

WebView2 runtime

After that, you should be able to run go-webview2 directly:

go run go-webview2/cmd/demo

This will use go-winloader to load an embedded copy of WebView2Loader.dll.

If this does not work, please try running from a directory that has an appropriate copy of WebView2Loader.dll for your GOARCH. If that worked, please file a bug so we can figure out what's wrong with go-winloader :)