File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,14 +104,18 @@ jobs:
104104 if : matrix.os_label == 'linux'
105105 shell : bash
106106 run : |
107- # PyGObject builds against these headers. WebKitGTK + the
108- # webkit2-4.0 GObject introspection bindings are what pywebview's
109- # GTK backend talks to at runtime. End users need the runtime
110- # halves of these too (libwebkit2gtk-4.0-37, gir1.2-webkit2-4.0).
107+ # PyGObject builds against these headers. WebKitGTK 4.1 + the
108+ # webkit2-4.1 GObject introspection bindings are what pywebview's
109+ # GTK backend talks to at runtime — the WebKit2 namespace is
110+ # identical across 4.0 and 4.1, so pywebview needs no change.
111+ # Ubuntu 24.04 (noble) on ubuntu-latest dropped the 4.0 packages;
112+ # earlier 22.04 runners had only 4.0. Pin to 4.1 to match noble.
113+ # End users need the runtime halves of these (libwebkit2gtk-4.1-0,
114+ # gir1.2-webkit2-4.1) installed via their distro's package manager.
111115 sudo apt-get update
112116 sudo apt-get install -y \
113- libwebkit2gtk-4.0-37 \
114- gir1.2-webkit2-4.0 \
117+ libwebkit2gtk-4.1-0 \
118+ gir1.2-webkit2-4.1 \
115119 libgirepository1.0-dev \
116120 libcairo2-dev \
117121 python3-gi \
Original file line number Diff line number Diff line change 1010# installed:
1111# - Windows: WebView2 runtime (pre-installed on Win10 22H2+ / Win11)
1212# - macOS: WKWebView (always present, macOS 10.10+)
13- # - Linux: libwebkit2gtk-4.0-37 + gir1.2-webkit2-4.0 (apt/dnf)
13+ # - Linux: libwebkit2gtk-4.1-0 + gir1.2-webkit2-4.1 (apt/dnf)
14+ # On older distros (Ubuntu 22.04 etc.) the 4.0 versions
15+ # (libwebkit2gtk-4.0-37 + gir1.2-webkit2-4.0) work too —
16+ # pywebview's WebKit2 namespace is identical across both.
1417pywebview>=5.0
1518
1619# Windows backend: WebView2 via .NET interop. pywebview's metadata is
You can’t perform that action at this time.
0 commit comments