版本号 0.3.0 并补齐 timeSync 生成绑定

- internal/version/version.go:0.2.1 -> 0.3.0。版本号单一来源,exe 文件名、编译注入(-ldflags)与界面左下角标签共用这一处
- wails.json:info.productVersion 同步为 0.3.0(只影响 exe 文件属性)
- frontend/wailsjs/go/models.ts:补上 gui.Config.timeSync 字段。这个绑定只有 wails build 会生成(npm run build 不会),所以上一版加 TimeSync 时漏提交了
- 已执行 ./scripts/build-windows.sh 产出 build/bin/huya-gui-v0.3.0.exe(PE32+ GUI x86-64,内嵌版本号 0.3.0)
This commit is contained in:
yml2213
2026-10-16 16:15:17 +08:00
parent 828236eb1d
commit 29aed15e4e
3 changed files with 6 additions and 4 deletions
+2
View File
@@ -41,6 +41,7 @@ export namespace gui {
autoSelect: boolean;
refreshAfterSuccess: boolean;
leadMs: number;
timeSync: boolean;
frequentBackoffMs: number;
errorBackoffMs: number;
timeoutSec: number;
@@ -74,6 +75,7 @@ export namespace gui {
this.autoSelect = source["autoSelect"];
this.refreshAfterSuccess = source["refreshAfterSuccess"];
this.leadMs = source["leadMs"];
this.timeSync = source["timeSync"];
this.frequentBackoffMs = source["frequentBackoffMs"];
this.errorBackoffMs = source["errorBackoffMs"];
this.timeoutSec = source["timeoutSec"];
+3 -3
View File
@@ -5,10 +5,10 @@ package version
//
// 构建时可用 ldflags 覆盖(构建脚本就是这么做的):
//
// go build -ldflags "-X huya-go/internal/version.Version=0.2.1"
var Version = "0.2.1"
// go build -ldflags "-X huya-go/internal/version.Version=0.3.0"
var Version = "0.3.0"
// Display 返回带 v 前缀的展示版本号,例如 v0.2.1。
// Display 返回带 v 前缀的展示版本号,例如 v0.3.0。
func Display() string {
return "v" + Version
}
+1 -1
View File
@@ -9,7 +9,7 @@
"info": {
"companyName": "huya-go",
"productName": "虎牙抢购助手",
"productVersion": "0.2.1",
"productVersion": "0.3.0",
"copyright": "",
"comments": "虎牙活动积分兑换/抢购工具"
}