feat(client): 锁定终局结果并接入 Windows 签名构建
构建客户端 / 检查(类型 + 单元测试) (push) Canceled after 0s
构建客户端 / Linux x64(deb + AppImage) (push) Canceled after 0s
构建客户端 / Windows x64(NSIS 安装包) (push) Canceled after 0s
构建客户端 / macOS 通用(.app + .dmg) (push) Canceled after 0s

- fix(match): 首次归零结束对局并撤销双方扣血许可,裁判结果同步后不再改判

- fix(hud): 蓝方低血量始终保留队伍颜色

- build(windows): 校验代码签名身份和时间戳,明确标注未签名测试包

- docs(version): 说明发布标签基线与语义版本迭代
This commit is contained in:
sloray committed 2026-10-31 10:18:09 +08:00
1 parent 338efa5c2e
commit dac763eb3e
26 files changed
+823 -229

No files matched your search

+15
View File
@@ -70,6 +70,21 @@ test("the low-health marker uses the exact threshold in the track's mirrored coo
}
});
test("critical health preserves each team's color for name, number, fill and border", () => {
for (const [team, color] of [[0, "red"], [1, "blue"]]) {
for (const hp of [30, 1, 0]) {
const html = renderToStaticMarkup(createElement(healthModule.HealthBar, {
health: { ...health, team, hp, critical: true }, config: { ...config, pulse: true }, align: "right",
}));
assert.match(html, /hp--critical/);
assert.match(html, /hp--pulsing/);
assert.match(html, new RegExp(`hp__fill" style="width:${hp}%;background-color:${color}`));
assert.match(html, new RegExp(`hp__value num" style="color:${color}"`));
assert.doesNotMatch(html, /var\(--error\)/);
}
}
});
function snapshot() {
return {
config: { cameraId: 1, armorId: 2, teamNames: ["我方", "对手"] },