feat(dcauth): 新增常驻托盘客户端与版本显示

Windows 改为单实例托盘常驻,协议唤起只弹一个确认窗口;补充 macOS 后台守护进程
与客户端版本显示。
This commit is contained in:
yml2213
2026-10-21 20:46:25 +08:00
parent 040100f290
commit cb916d7750
12 changed files with 1087 additions and 73 deletions
+13
View File
@@ -0,0 +1,13 @@
//go:build darwin
package main
import "testing"
func TestAppleScriptStringEscapesDialogText(t *testing.T) {
got := appleScriptString("第一行\n第二行 \"确认\" \\ DCAuth")
want := `"第一行\n第二行 \"确认\" \\ DCAuth"`
if got != want {
t.Fatalf("appleScriptString() = %q, want %q", got, want)
}
}