Skip to content

Commit aa061dd

Browse files
authored
Make SharpWebview compatible with Ubuntu 24.04+ (#47)
* build updates * cmakelists update * cmakelists old tag with 4.1 * Update webview.yaml * Update README.md * Update README.md * Add new linux library
1 parent 4618310 commit aa061dd

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/webview.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v2
1111
- name: Install dependencies
12-
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev xvfb -y
12+
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.1-dev xvfb -y
1313
- name: Get CMake
1414
uses: lukka/get-cmake@latest
1515
- name: Run CMake
@@ -18,7 +18,7 @@ jobs:
1818
configurePreset: 'ninja'
1919
buildPreset: 'ninja'
2020
- name: Upload artifact
21-
uses: actions/upload-artifact@v1.0.0
21+
uses: actions/upload-artifact@v4
2222
with:
2323
name: "webview-linux64"
2424
path: ./build
@@ -35,7 +35,7 @@ jobs:
3535
configurePreset: 'ninja'
3636
buildPreset: 'ninja'
3737
- name: Upload artifact
38-
uses: actions/upload-artifact@v1.0.0
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: "webview-mac64"
4141
path: ./build
@@ -53,7 +53,7 @@ jobs:
5353
configurePreset: 'windows'
5454
buildPreset: 'windows'
5555
- name: Upload artifact
56-
uses: actions/upload-artifact@v1.0.0
56+
uses: actions/upload-artifact@v4
5757
with:
5858
name: "webview-win64"
59-
path: ./build
59+
path: ./build

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ build/
66
Files.wxs
77
*.wixobj
88
*.wixpdb
9-
*.msi
9+
*.msi
10+
_deps/
11+
CMakeFiles/

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
1313
IMPORTED_TARGET
1414
)
1515
pkg_check_modules(
16-
webkit2 REQUIRED webkit2gtk-4.0
16+
webkit2 REQUIRED webkit2gtk-4.1
1717
IMPORTED_TARGET
1818
)
1919
set(CMAKE_CXX_FLAGS "-DWEBVIEW_STATIC")

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Please install the developer packages of webkit2gtk and libgtk on your machine.
2323

2424
With a distribution using apt run:
2525
```
26-
sudo apt install -y libwebkit2gtk-4.0-dev libgtk-3-dev
26+
sudo apt install -y libwebkit2gtk-4.1-dev libgtk-3-dev
2727
```
2828

2929
or DNF
3030
```
31-
sudo dnf install webkit2gtk4,0-devel.x86_64 gtk3-devel.x84_64
31+
sudo dnf install webkit2gtk4.1-devel gtk3-devel
3232
```
3333

3434
## A basic example

libs/libwebview.so

5.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)