feat(macos): add deep link support for qobuzapp:// URLs

Add tauri-plugin-deep-link to handle qobuzapp:// URLs on macOS, where
the OS delivers URLs via Apple Events instead of CLI arguments.

- Register qobuzapp scheme in tauri.conf.json (injected into Info.plist)
- Add on_open_url handler for Apple Event URL delivery
- Extract is_qobuz_link() and handle_qobuz_link() helpers to deduplicate
  URL matching across single-instance, first-launch, and deep-link paths
- Tighten URL matching from contains() to starts_with() for security
- Log emit errors instead of silently discarding them
This commit is contained in:
Afonso Jorge Ramos committed 2026-03-31 05:53:44 +02:00
1 parent 0ce54c3f10
commit a2fb44511d
5 files changed
+173 -25

No files matched your search

+7
View File
@@ -31,6 +31,13 @@
}
}
},
"plugins": {
"deep-link": {
"desktop": {
"schemes": ["qobuzapp"]
}
}
},
"bundle": {
"active": true,
"targets": "all",