fix(update): 更新清单指向 xhmcl 仓库,下载地址与 tag 对齐
VersionStamp 里硬编码的仓库地址还是 gitcode.com/Morris_1/GC,与启动器
AppSettings.UpdateRepository 的默认值(git.xhmcl.com/Morris/GC)不一致,
导致生成的 version.json 把客户端导到一个没有对应 Release 的仓库。
同时下载地址拼的是 /download/v{版本}/,而实际 tag 没有 v 前缀
(1.0.7、1.0.8),两者对不上会 404。
改为读同一仓库地址并去掉 v 前缀,同时把当前 1.0.8 的清单同步过来
(sha256 沿用本次构建产物,未重算)。
This commit is contained in:
1 parent
2c0c566c81
commit
fdbf3160e8
3 files changed
+60
-60
No files matched your search
@@ -11,7 +11,7 @@ using GC.Services;
|
||||
// 仓库根 version.json 与 model/version.json(内容相同,便于两种源地址读取)。
|
||||
|
||||
// 仓库地址(编译产物的 Release 也发在这里):与启动器默认 updateRepository 保持一致。
|
||||
const string Repository = "https://gitcode.com/Morris_1/GC";
|
||||
const string Repository = "https://git.xhmcl.com/Morris/GC";
|
||||
|
||||
// 位置参数:<仓库根> <启动器版本>;开关:--launcher-only
|
||||
// --launcher-only 只刷新 launcher.packages(构建脚本在打完 zip 之后再调一次),
|
||||
@@ -150,7 +150,7 @@ var packages = new Dictionary<string, Dictionary<string, object>>();
|
||||
// 2) 仓库里的编译产物 dist/<系统>-<架构>/GC-<版本>-<系统>-<架构>.zip ——
|
||||
// 不发 Release、只提交产物也能更新(用户明确要求支持这种布局)。
|
||||
// 两种都写:url 只是「去哪儿找」,真正的完整性凭据是下面的 sha256(受签名保护)。
|
||||
var releaseBase = $"{Repository}/releases/download/v{launcherVersion}";
|
||||
var releaseBase = $"{Repository}/releases/download/{launcherVersion}";
|
||||
foreach (var rid in new[] { "win-x64", "win-arm64", "osx-arm64", "osx-x64", "linux-x64" })
|
||||
{
|
||||
var label = LauncherArtifacts.LabelOf(rid);
|
||||
|
||||
Reference in new issue
Block a user