仓库里硬编码的公钥 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 发出去。
104 lines
3.8 KiB
JSON
104 lines
3.8 KiB
JSON
{
|
|
"schema": 1,
|
|
"generated": "2026-11-18T10:16:41Z",
|
|
"repository": "https://git.xhmcl.com/Morris/GC",
|
|
"branch": "main",
|
|
"modelDir": "model",
|
|
"launcher": {
|
|
"version": "1.0.9",
|
|
"revision": "",
|
|
"packages": {
|
|
"win-x64": {
|
|
"path": "dist/win-amd64/GC-1.0.9-win-amd64.zip",
|
|
"dir": "dist/win-amd64",
|
|
"name": "GC-1.0.9-win-amd64.zip",
|
|
"url": "https://git.xhmcl.com/Morris/GC/releases/download/1.0.9/GC-1.0.9-win-amd64.zip",
|
|
"sha256": "0807f1005e2d8bd54316529670cf1c3c89a2df07bd39297145f21c9a0aae5f04",
|
|
"size": 114372206
|
|
},
|
|
"win-arm64": {
|
|
"path": "dist/win-arm64/GC-1.0.9-win-arm64.zip",
|
|
"dir": "dist/win-arm64",
|
|
"name": "GC-1.0.9-win-arm64.zip",
|
|
"url": "https://git.xhmcl.com/Morris/GC/releases/download/1.0.9/GC-1.0.9-win-arm64.zip",
|
|
"sha256": "ffdc37f8ea5041d69be88ffbcbf9ba5d80f7fb97c6b3debc5a918ff89f9e7f60",
|
|
"size": 110425463
|
|
},
|
|
"osx-arm64": {
|
|
"path": "dist/mac-arm64/GC-1.0.9-mac-arm64.zip",
|
|
"dir": "dist/mac-arm64",
|
|
"name": "GC-1.0.9-mac-arm64.zip",
|
|
"url": "https://git.xhmcl.com/Morris/GC/releases/download/1.0.9/GC-1.0.9-mac-arm64.zip",
|
|
"sha256": "e62bbc8c9925d8158f850440600b5d16af7539c85651a5ebcc5f9a85d4c9bb01",
|
|
"size": 60066040
|
|
},
|
|
"osx-x64": {
|
|
"path": "dist/mac-x64/GC-1.0.9-mac-x64.zip",
|
|
"dir": "dist/mac-x64",
|
|
"name": "GC-1.0.9-mac-x64.zip",
|
|
"url": "https://git.xhmcl.com/Morris/GC/releases/download/1.0.9/GC-1.0.9-mac-x64.zip"
|
|
},
|
|
"linux-x64": {
|
|
"path": "dist/linux-amd64/GC-1.0.9-linux-amd64.zip",
|
|
"dir": "dist/linux-amd64",
|
|
"name": "GC-1.0.9-linux-amd64.zip",
|
|
"url": "https://git.xhmcl.com/Morris/GC/releases/download/1.0.9/GC-1.0.9-linux-amd64.zip"
|
|
}
|
|
}
|
|
},
|
|
"models": [
|
|
{
|
|
"id": "contour-map",
|
|
"version": "1.1",
|
|
"build": "773ab2161d",
|
|
"manifestSha256": "f86a3f83d5953cafc333585da3009d8846448f6a8a9df13b39cde57b36037733",
|
|
"filesSha256": "a6bdf9b4273aabee50c3c94ceab4d0abee15f0df1af90c58bdbb796e0d2d5699",
|
|
"files": 5,
|
|
"dir": "model/contour-map"
|
|
},
|
|
{
|
|
"id": "earth-geography",
|
|
"version": "1.9",
|
|
"build": "cc68b8863b",
|
|
"manifestSha256": "448f050fded46d7bfc8f0c3856e741c4a4f82523c8e012dd846ddcd400ff394a",
|
|
"filesSha256": "c018ba481831e23d3183a38ac47251f19754c7464baa5d85b47cea7a49fcfa95",
|
|
"files": 11,
|
|
"dir": "model/earth-geography"
|
|
},
|
|
{
|
|
"id": "earth-revolution",
|
|
"version": "1.7",
|
|
"build": "53b7a0fbc3",
|
|
"manifestSha256": "c69fc53f50213c6ab7658e1a761a20d2c55a7a344beb3c75a30393c26fa40167",
|
|
"filesSha256": "4cd45b0324a77574a0da3a939c2a6faebc785c5a24cb50136d62a78a6ea2e9b1",
|
|
"files": 7,
|
|
"dir": "model/earth-revolution"
|
|
},
|
|
{
|
|
"id": "earth-rotation",
|
|
"version": "1.7",
|
|
"build": "ecd52665f9",
|
|
"manifestSha256": "cbf12a47747a331c9980260f39169b1813bb4b52a8916995fda05755267bddca",
|
|
"filesSha256": "594b005a6a9f36cd0b5d4e4a7a0b1ab42d53c8032832545b71c3915493d56c8e",
|
|
"files": 7,
|
|
"dir": "model/earth-rotation"
|
|
},
|
|
{
|
|
"id": "scale-calculator",
|
|
"version": "1.6",
|
|
"build": "105653737d",
|
|
"manifestSha256": "fc6f7deb1efb076cc0bbee732e7de8f007ed74bc837dba2268be1e0adc1839d3",
|
|
"filesSha256": "732dd26406e0f1e836970499d7ea644def332ce909d7f8aa0a403bbe7337e604",
|
|
"files": 6,
|
|
"dir": "model/scale-calculator"
|
|
}
|
|
],
|
|
"signature": {
|
|
"alg": "ECDSA-P256-SHA256",
|
|
"keyId": "gc-2026-12",
|
|
"value": "A2jaSxRK1B43k8uOWmC/8diYG6JYUncGgjXW8B1ntO5Ag5rsG7Pb2gMz5ad6AcwjZ9zs8qtsSxJv8vLsUNXtWw==",
|
|
"contentSha256": "3bf738a164537e5d575e75c314f0ac01af1cb5d4d7cb882489d8dedeb73f51e9",
|
|
"signedAt": "2026-11-18T10:18:01Z"
|
|
}
|
|
}
|