Skip to content

Commit d170b98

Browse files
committed
2 parents 8aebba4 + 688b9f8 commit d170b98

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src-tauri/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ static mut NEED_WINDOW_BE_FOCUS:Lazy<Arc<Mutex<bool>>> = Lazy::new(|| Arc::new(M
2525
#[tokio::main]
2626
async fn main() -> std::io::Result<()> {
2727

28-
if std::env::consts::OS == "windows" || std::env::consts::OS == "linux"{
29-
// Deep linking
28+
#[cfg(not(target_os = "macos"))]
29+
{
30+
// Deep linking
3031
deep_link::prepare("app.HiddifyDesktop");
3132
// Define deep link handler
3233
let handler = | deep_link | async move {
@@ -62,8 +63,7 @@ async fn main() -> std::io::Result<()> {
6263
if deep_link_register_result.is_err(){
6364
println!("We can't register \"clash\" scheme for program | {}",deep_link_register_result.err().unwrap())
6465
}
65-
}
66-
66+
}
6767

6868
// 单例检测
6969
if server::check_singleton().is_err() {

0 commit comments

Comments
 (0)