下载失败时提示到 GitHub Releases 手动下载

失败弹窗固定给出 https://github.com/waynebian01/Shigure/releases ,
并说明把 SpellIcons.shgpack 放到程序目录的 data 文件夹;可选择立即打开页面。

Co-authored-by: Wayne-Arasaka <waynebian01@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-09-02 03:21:02 +00:00
parent b5c8d00fe1
commit 345e53c92c
2 changed files with 50 additions and 8 deletions

View File

@@ -155,9 +155,7 @@ internal sealed class SpellIconPackageDownloadService : IDisposable
throw new HttpRequestException(
"无法从 GitHub 获取技能/物品数据包。"
+ Environment.NewLine
+ string.Join(Environment.NewLine, errors)
+ Environment.NewLine
+ $"可从 {ReleasesPageUrl} 手动下载 {AssetName}。");
+ string.Join(Environment.NewLine, errors));
}
private static async Task<ReleaseAsset?> TryResolveAsync(