b483360778
- 新增 light/dark 主题调色板与 Windows 注册表系统主题探测 - 偏好设置对话框:主题三选一 + 语言下拉(en/zh-CN/de),即时生效 - 持久化 Language/Theme/AutoLockMinutes/MinimizeToTray 至 YAML 顶层 - 启动时按 config 中保存的语言初始化 i18n - About 对话框展示 version/runtime/项目地址/许可证 - 全部硬编码颜色迁移到 themePalette,为深色模式做准备
29 lines
869 B
Go
29 lines
869 B
Go
// Package version exposes build metadata. Defaults are placeholders for
|
|
// dev builds; release builds inject real values via -ldflags:
|
|
//
|
|
// -X git.wxccs.org/iceking2nd/winauth-go/internal/version.Version=1.2.3
|
|
// -X git.wxccs.org/iceking2nd/winauth-go/internal/version.Commit=abc1234
|
|
// -X git.wxccs.org/iceking2nd/winauth-go/internal/version.BuildDate=2026-06-12
|
|
package version
|
|
|
|
// Version is the human-readable release version ("1.2.3" or "dev").
|
|
var Version = "dev"
|
|
|
|
// Commit is the short git SHA the binary was built from. Empty in dev.
|
|
var Commit = ""
|
|
|
|
// BuildDate is the ISO date when the binary was built. Empty in dev.
|
|
var BuildDate = ""
|
|
|
|
// String returns a one-line summary suitable for an About dialog.
|
|
func String() string {
|
|
s := Version
|
|
if Commit != "" {
|
|
s += " (" + Commit + ")"
|
|
}
|
|
if BuildDate != "" {
|
|
s += " — " + BuildDate
|
|
}
|
|
return s
|
|
}
|