URL 自定义协议

This commit is contained in:
ZilongYang
2023-08-24 11:07:51 +08:00
parent 3cc551fe0d
commit 76004597e2
7 changed files with 201 additions and 533 deletions

21
src-tauri/Info.plist Normal file
View File

@@ -0,0 +1,21 @@
<!-- Add this file next to your tauri.conf.json file -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<!-- Obviously needs to be replaced with your app's bundle identifier -->
<string>com.zlmix.zmusic</string>
<key>CFBundleURLSchemes</key>
<array>
<!-- register the myapp:// and myscheme:// schemes -->
<string>zmusic</string>
<string>zm-scheme</string>
</array>
</dict>
</array>
</dict>
</plist>