We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8aebba4 + 688b9f8 commit d170b98Copy full SHA for d170b98
1 file changed
src-tauri/src/main.rs
@@ -25,8 +25,9 @@ static mut NEED_WINDOW_BE_FOCUS:Lazy<Arc<Mutex<bool>>> = Lazy::new(|| Arc::new(M
25
#[tokio::main]
26
async fn main() -> std::io::Result<()> {
27
28
- if std::env::consts::OS == "windows" || std::env::consts::OS == "linux"{
29
- // Deep linking
+ #[cfg(not(target_os = "macos"))]
+ {
30
+ // Deep linking
31
deep_link::prepare("app.HiddifyDesktop");
32
// Define deep link handler
33
let handler = | deep_link | async move {
@@ -62,8 +63,7 @@ async fn main() -> std::io::Result<()> {
62
63
if deep_link_register_result.is_err(){
64
println!("We can't register \"clash\" scheme for program | {}",deep_link_register_result.err().unwrap())
65
}
- }
66
-
+ }
67
68
// 单例检测
69
if server::check_singleton().is_err() {
0 commit comments