仓库里硬编码的公钥 gc-2026-11 没有对应的私钥(.signing/ 在 .gitignore 里, 私钥从来没入过库,也无法找回),导致 build.sh 每次签名都失败,version.json 始终是「未签名」。而客户端默认 RequireSignedManifest=true,未签名清单一律 拒绝更新 —— 自动更新实际上完全不可用。 改动: - keygen 生成新密钥 gc-2026-12(指纹 ee6083be47a87907),公钥写进 SignatureKeyring;旧 gc-2026-11 保留一个版本周期,标注为「私钥遗失、已停用」 - GC-SAVEDOG 的 DefaultKeyId 与 build_funcs.sh 的 GC_SIGNING_KEY_ID 默认值 同步改为 gc-2026-12,避免 keyId 与私钥不匹配又签出 Invalid - GC.Tests 构造可信清单时用的 keyId 改为 gc-2026-12(原来硬编码旧 keyId, 换钥匙后会判成 Invalid) - README 补上密钥轮换的实际步骤与「换钥匙老客户端就更新不了」的代价 - Directory.Build.props 版本 1.0.7 → 1.0.9(此前只靠 -version 传参, 仓库里一直停在 1.0.7,与实际发布脱节) - version.json / model/version.json 换成 1.0.9 且带 gc-2026-12 签名, 两份字节一致 验证: - GC.Tests --update-test 全通过,日志里是「清单验签通过(gc-2026-12)」, 篡改清单被判 Invalid 并拒绝更新 - GC-SAVEDOG verify --manifest version.json → Verified - 三平台重新出包:win-amd64 109 MB、win-arm64 105 MB、mac-arm64 57 MB 注意:1.0.8 及更早的客户端只认识旧公钥,这份清单在它们眼里是「签名无效」, 与之前的「未签名」等价 —— 都不会自动更新。要让自动更新真正生效,需要把 带新公钥的 1.0.9 发出去。
37 lines
990 B
JSON
37 lines
990 B
JSON
{
|
|
"schemaVersion": 1,
|
|
"id": "earth-revolution",
|
|
"name": "Earth Revolution",
|
|
"nameI18n": {
|
|
"zh-CN": "地球公转",
|
|
"en": "Earth Revolution"
|
|
},
|
|
"author": "Morris",
|
|
"description": "四季更替、黄赤交角与二分二至",
|
|
"descriptionI18n": {
|
|
"zh-CN": "地球绕太阳公转一年:地轴指向不变,太阳直射点南北往返,形成四季。",
|
|
"en": "One year around the Sun: the fixed axial direction moves the subsolar point and creates the seasons."
|
|
},
|
|
"tags": [
|
|
"astronomy",
|
|
"geography",
|
|
"revolution"
|
|
],
|
|
"entry": "scene.json",
|
|
"license": "MIT",
|
|
"assembly": "EarthRevolutionModel.dll",
|
|
"type": "GC.EarthModels.RevolutionModelFactory",
|
|
"preview": "preview.png",
|
|
"apiVersion": 1,
|
|
"version": "1.7",
|
|
"chrome": {
|
|
"titleBar": "#0C1828",
|
|
"titleBorder": "#1B2740",
|
|
"titleText": "#EAF2FF",
|
|
"button": "#9FB4D4",
|
|
"frame": "#0A1524"
|
|
},
|
|
"build": "53b7a0fbc3",
|
|
"updatedAt": "2026-11-18T10:16:41Z"
|
|
}
|