Skip to content

Commit b490308

Browse files
authored
fix(core): compilation error on older Linux versions, fixes #5684 (#5697)
1 parent 527bd9f commit b490308

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri': 'patch'
3+
'tauri-runtime-wry': 'patch'
4+
---
5+
6+
Fix compatibility with older Linux distributions.

core/tauri-runtime-wry/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ webview2-com = "0.19.1"
2929

3030
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
3131
gtk = { version = "0.15", features = [ "v3_20" ] }
32-
webkit2gtk = { version = "0.18.2", features = [ "v2_36" ] }
32+
webkit2gtk = { version = "0.18.2", features = [ "v2_22" ] }
3333
percent-encoding = "2.1"
3434

3535
[target."cfg(any(target_os = \"ios\", target_os = \"macos\"))".dependencies]
@@ -47,4 +47,4 @@ macos-private-api = [
4747
objc-exception = [ "wry/objc-exception" ]
4848
global-shortcut = [ "tauri-runtime/global-shortcut" ]
4949
clipboard = [ "tauri-runtime/clipboard" ]
50-
linux-headers = [ "wry/linux-headers" ]
50+
linux-headers = [ "wry/linux-headers", "webkit2gtk/v2_36" ]

core/tauri/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ notify-rust = { version = "4.5", default-features = false, features = [ "d" ], o
9393
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
9494
gtk = { version = "0.15", features = [ "v3_20" ] }
9595
glib = "0.15"
96-
webkit2gtk = { version = "0.18.2", features = [ "v2_36" ] }
96+
webkit2gtk = { version = "0.18.2", features = [ "v2_22" ] }
9797

9898
[target."cfg(target_os = \"macos\")".dependencies]
9999
embed_plist = "1.2"
@@ -129,7 +129,7 @@ default = [ "wry", "compression", "objc-exception" ]
129129
compression = [ "tauri-macros/compression", "tauri-utils/compression" ]
130130
wry = [ "tauri-runtime-wry" ]
131131
objc-exception = [ "tauri-runtime-wry/objc-exception" ]
132-
linux-protocol-headers = [ "tauri-runtime-wry/linux-headers" ]
132+
linux-protocol-headers = [ "tauri-runtime-wry/linux-headers", "webkit2gtk/v2_36" ]
133133
isolation = [ "tauri-utils/isolation", "tauri-macros/isolation" ]
134134
custom-protocol = [ "tauri-macros/custom-protocol" ]
135135
updater = [

0 commit comments

Comments
 (0)