From 4671143030ffd6a6a8ac1384cc336bad8bf2f9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 6 Sep 2025 23:48:21 +0900 Subject: [PATCH] refactor: restrict kgg db support to Windows only --- algo/kgm/pc_kugou_db/cipher_default.go | 7 +++++++ algo/kgm/pc_kugou_db/{cipher.go => cipher_windows.go} | 0 .../pc_kugou_db/{cipher_test.go => cipher_windows_test.go} | 0 3 files changed, 7 insertions(+) create mode 100644 algo/kgm/pc_kugou_db/cipher_default.go rename algo/kgm/pc_kugou_db/{cipher.go => cipher_windows.go} (100%) rename algo/kgm/pc_kugou_db/{cipher_test.go => cipher_windows_test.go} (100%) diff --git a/algo/kgm/pc_kugou_db/cipher_default.go b/algo/kgm/pc_kugou_db/cipher_default.go new file mode 100644 index 0000000..2e1137d --- /dev/null +++ b/algo/kgm/pc_kugou_db/cipher_default.go @@ -0,0 +1,7 @@ +//go:build !windows + +package pc_kugou_db + +func CachedDumpEKey(dbPath string) (map[string]string, error) { + return nil, nil +} diff --git a/algo/kgm/pc_kugou_db/cipher.go b/algo/kgm/pc_kugou_db/cipher_windows.go similarity index 100% rename from algo/kgm/pc_kugou_db/cipher.go rename to algo/kgm/pc_kugou_db/cipher_windows.go diff --git a/algo/kgm/pc_kugou_db/cipher_test.go b/algo/kgm/pc_kugou_db/cipher_windows_test.go similarity index 100% rename from algo/kgm/pc_kugou_db/cipher_test.go rename to algo/kgm/pc_kugou_db/cipher_windows_test.go