♻️ Refactoring configuration migration service

This commit is contained in:
2025-08-31 17:48:41 +08:00
parent fa72ff8061
commit 5f22ee3b1f
15 changed files with 520 additions and 300 deletions

View File

@@ -4,6 +4,7 @@ import (
"os"
"path/filepath"
"time"
"voidraft/internal/version"
)
// TabType 定义了制表符类型
@@ -178,7 +179,7 @@ func NewDefaultAppConfig() *AppConfig {
SystemTheme: SystemThemeAuto,
},
Updates: UpdatesConfig{
Version: "1.3.0",
Version: version.Version,
AutoUpdate: true,
PrimarySource: UpdateSourceGitea,
BackupSource: UpdateSourceGithub,
@@ -207,7 +208,7 @@ func NewDefaultAppConfig() *AppConfig {
},
Metadata: ConfigMetadata{
LastUpdated: time.Now().Format(time.RFC3339),
Version: "1.2.0",
Version: version.Version,
},
}
}