Remove macOS/WeChat 3.x support and related code

Dropped all code, documentation, and models related to macOS and WeChat 3.x (darwinv3) support, including command-line tools, model definitions, and documentation files. Updated README to clarify that only Windows and WeChat 4.x are supported, and improved instructions for image key acquisition. Enhanced restart-and-get-key logic with status callbacks and retry handling for more robust key extraction after WeChat restarts.
This commit is contained in:
teest114514
2025-12-16 21:35:01 +08:00
parent 1a214ea4c4
commit ec41b0d2be
37 changed files with 319 additions and 4196 deletions

View File

@@ -8,9 +8,7 @@ import (
"github.com/sjzar/chatlog/internal/errors"
"github.com/sjzar/chatlog/internal/model"
"github.com/sjzar/chatlog/internal/wechatdb/datasource/darwinv3"
v4 "github.com/sjzar/chatlog/internal/wechatdb/datasource/v4"
"github.com/sjzar/chatlog/internal/wechatdb/datasource/windowsv3"
)
type DataSource interface {
@@ -38,14 +36,8 @@ type DataSource interface {
func New(path string, platform string, version int) (DataSource, error) {
switch {
case platform == "windows" && version == 3:
return windowsv3.New(path)
case platform == "windows" && version == 4:
return v4.New(path)
case platform == "darwin" && version == 3:
return darwinv3.New(path)
case platform == "darwin" && version == 4:
return v4.New(path)
default:
return nil, errors.PlatformUnsupported(platform, version)
}