macOS fixes
This commit is contained in:
3 files changed
+10
-3
No files matched your search
@@ -13,7 +13,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
tauri-build = { version = "2.6.2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2.11.2", features = [] }
|
||||
tauri = { version = "2.11.2", features = ["macos-private-api"] }
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.150"
|
||||
tauri-plugin-clipboard-manager = "2.3.2"
|
||||
@@ -30,7 +30,7 @@ windows-version = "0.1.7"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = "fat"
|
||||
lto = "thin"
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
panic = "abort"
|
||||
@@ -1,5 +1,8 @@
|
||||
use tauri::{WebviewUrl, WebviewWindowBuilder};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
use window_vibrancy::{NSVisualEffectMaterial, apply_vibrancy};
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
#[allow(unused_mut)]
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
"frontendDist": "../dist"
|
||||
},
|
||||
"app": {
|
||||
"macOSPrivateApi": true,
|
||||
"windows": [],
|
||||
"security": {
|
||||
"csp": null
|
||||
@@ -18,6 +19,9 @@
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"icon": ["icons/icon.icns", "icons/icon.png", "icons/icon.ico"]
|
||||
"icon": ["icons/icon.icns", "icons/icon.png", "icons/icon.ico"],
|
||||
"macOS": {
|
||||
"minimumSystemVersion": "14.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user