Skip to content

Commit

Permalink
ci: 修复MacOS构建失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Mar 6, 2023
1 parent a389120 commit 9c817fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tauri-build = { version = "1.2", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.2", features = ["clipboard-all", "fs-write-file", "global-shortcut-all", "http-all", "notification", "notification-all", "shell-open", "system-tray", "window-all"] }
tauri = { version = "1.2", features = ["clipboard-all", "fs-write-file", "global-shortcut-all", "http-all", "notification", "notification-all", "shell-open", "system-tray", "window-all","macos-private-api"] }
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
once_cell = "1.17.1"
reqwest = "0.11.14"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/shortcut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn translate() {
.unwrap();
// Windows 下拖动窗口会失去焦点,此方法不适用
#[cfg(target_os = "linux")]
// window.on_window_event(on_lose_focus);
window.on_window_event(on_lose_focus);
// css圆角对windows无效,需要单独设置
#[cfg(target_os = "windows")]
set_shadow(&window, true).unwrap();
Expand Down

0 comments on commit 9c817fa

Please sign in to comment.