Skip to content

Commit f03ac94

Browse files
committed
Change to webview fork
1 parent ac58f7c commit f03ac94

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.5.5] - 2020-05-05
810
### Add
911
- Link interception for image links
1012
- Option activate/deactivate logging of the host
13+
- New webview version
1114

1215
## [0.5.4] - 2020-04-29
1316
### Add
1417
- Intercept clicks to external links and open them in the system browser
15-
- Patch for webview to open the webview on 'Run' instead of initialization (Windows)
1618

1719
### Fixed
1820
- GC no longer disposes the callback functions of the webview binds

CMakeLists.txt

+5-9
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,23 @@ endif()
2323
include(FetchContent)
2424
FetchContent_Declare(
2525
webviewNative
26-
GIT_REPOSITORY https://github.com/zserge/webview.git
27-
GIT_TAG 50e4bcc420abdc7be96a54b7c79934a000b76901
28-
PATCH_COMMAND
29-
COMMAND git apply ${PROJECT_SOURCE_DIR}/libs/000-WindowTitlebarIcon.patch
30-
COMMAND git apply ${PROJECT_SOURCE_DIR}/libs/001-InitPointVars.patch
31-
COMMAND git apply ${PROJECT_SOURCE_DIR}/libs/002-Windows-HideUntilRun.patch
26+
GIT_REPOSITORY https://github.com/geaz/webview
27+
GIT_TAG 313eae7e61519baa1799509ca98e187bf1f28dbe
3228
)
3329
FetchContent_Populate(webviewNative)
3430

3531
include_directories(
3632
"${webviewnative_SOURCE_DIR}"
37-
"${webviewnative_SOURCE_DIR}/script/Microsoft.Web.WebView2.0.8.355/build/native/include"
33+
"${webviewnative_SOURCE_DIR}/script/microsoft.web.webview2.0.9.488/build/native/include"
3834
)
39-
link_directories("${webviewnative_SOURCE_DIR}/script/Microsoft.Web.WebView2.0.8.355/build/native/x64")
35+
link_directories("${webviewnative_SOURCE_DIR}/script/microsoft.web.webview2.0.9.488/build/native/x64")
4036

4137
add_library(webview SHARED "${webviewnative_SOURCE_DIR}/webview.cc")
4238

4339
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
4440
target_compile_definitions(webview PRIVATE "WEBVIEW_API=__declspec(dllexport)")
4541
target_link_libraries(webview WebView2Loader.dll.lib)
46-
configure_file(${webviewnative_SOURCE_DIR}/script/Microsoft.Web.WebView2.0.8.355/build/x64/WebView2Loader.dll WebView2Loader.dll COPYONLY)
42+
configure_file(${webviewnative_SOURCE_DIR}/script/microsoft.web.webview2.0.9.488/build/x64/WebView2Loader.dll WebView2Loader.dll COPYONLY)
4743
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
4844
target_link_libraries(webview PkgConfig::gtk3 PkgConfig::webkit2)
4945
endif()

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You are always able to see which webview version *sharpWebview* uses by looking
1616

1717
All patches are also contributed back to [zserge/webview](https://github.com/zserge/webview).
1818

19+
*REMARK:* The nuget uses this [fork](https://github.com/geaz/webview) at the moment, because the work on upstream is stalled at the moment. Because of the many patches it was not possible to maintain it without a fork.
20+
1921
# Get started
2022

2123
## A basic example
@@ -33,7 +35,7 @@ Always add the *[STAThread]* attribute to the main method. This is necessary to
3335
static void Main(string[] args)
3436
```
3537

36-
To create a webview use a *using* block. This way you make sure that the native webview gets always disposed correctly!
38+
To create a webview use a *using* block. This way you make sure that the native webview gets disposed correctly!
3739

3840
```
3941
using SharpWebview;

0 commit comments

Comments
 (0)