版本号 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:
@@ -41,6 +41,7 @@ export namespace gui {
|
|||||||
autoSelect: boolean;
|
autoSelect: boolean;
|
||||||
refreshAfterSuccess: boolean;
|
refreshAfterSuccess: boolean;
|
||||||
leadMs: number;
|
leadMs: number;
|
||||||
|
timeSync: boolean;
|
||||||
frequentBackoffMs: number;
|
frequentBackoffMs: number;
|
||||||
errorBackoffMs: number;
|
errorBackoffMs: number;
|
||||||
timeoutSec: number;
|
timeoutSec: number;
|
||||||
@@ -74,6 +75,7 @@ export namespace gui {
|
|||||||
this.autoSelect = source["autoSelect"];
|
this.autoSelect = source["autoSelect"];
|
||||||
this.refreshAfterSuccess = source["refreshAfterSuccess"];
|
this.refreshAfterSuccess = source["refreshAfterSuccess"];
|
||||||
this.leadMs = source["leadMs"];
|
this.leadMs = source["leadMs"];
|
||||||
|
this.timeSync = source["timeSync"];
|
||||||
this.frequentBackoffMs = source["frequentBackoffMs"];
|
this.frequentBackoffMs = source["frequentBackoffMs"];
|
||||||
this.errorBackoffMs = source["errorBackoffMs"];
|
this.errorBackoffMs = source["errorBackoffMs"];
|
||||||
this.timeoutSec = source["timeoutSec"];
|
this.timeoutSec = source["timeoutSec"];
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ package version
|
|||||||
//
|
//
|
||||||
// 构建时可用 ldflags 覆盖(构建脚本就是这么做的):
|
// 构建时可用 ldflags 覆盖(构建脚本就是这么做的):
|
||||||
//
|
//
|
||||||
// go build -ldflags "-X huya-go/internal/version.Version=0.2.1"
|
// go build -ldflags "-X huya-go/internal/version.Version=0.3.0"
|
||||||
var Version = "0.2.1"
|
var Version = "0.3.0"
|
||||||
|
|
||||||
// Display 返回带 v 前缀的展示版本号,例如 v0.2.1。
|
// Display 返回带 v 前缀的展示版本号,例如 v0.3.0。
|
||||||
func Display() string {
|
func Display() string {
|
||||||
return "v" + Version
|
return "v" + Version
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"companyName": "huya-go",
|
"companyName": "huya-go",
|
||||||
"productName": "虎牙抢购助手",
|
"productName": "虎牙抢购助手",
|
||||||
"productVersion": "0.2.1",
|
"productVersion": "0.3.0",
|
||||||
"copyright": "",
|
"copyright": "",
|
||||||
"comments": "虎牙活动积分兑换/抢购工具"
|
"comments": "虎牙活动积分兑换/抢购工具"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user