Fix macOS AppKit build

This commit is contained in:
Yuri Karamian
2026-07-24 16:14:48 +02:00
parent 9c53b3b594
commit 289606a746
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -1860,6 +1860,7 @@ dependencies = [
"image", "image",
"log", "log",
"notify", "notify",
"objc2-app-kit",
"png 0.17.16", "png 0.17.16",
"quick-xml 0.36.2", "quick-xml 0.36.2",
"rayon", "rayon",
+3
View File
@@ -42,6 +42,9 @@ quick-xml = "0.36"
urlencoding = "2" urlencoding = "2"
sha2 = "0.10" sha2 = "0.10"
rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] } rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2-app-kit = "0.3.2"
[target.'cfg(target_os = "ios")'.dependencies] [target.'cfg(target_os = "ios")'.dependencies]
tauri-plugin-ios-vault-access = { path = "plugins/ios-vault-access" } tauri-plugin-ios-vault-access = { path = "plugins/ios-vault-access" }
+1 -1
View File
@@ -424,7 +424,7 @@ fn fix_macos_traffic_lights(window: &tauri::WebviewWindow) {
None => return, None => return,
}; };
let superview = match close.superview() { let superview = match unsafe { close.superview() } {
Some(sv) => sv, Some(sv) => sv,
None => return, None => return,
}; };