fix: simplify LoongArch download copy
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s
Deploy website to GitHub Pages / Deploy static website (push) Canceled after 0s

The Linux download card now presents only the preview version, DEB format, size, and checksum. Preview index validation and fail-closed download behavior are unchanged.

Release note: 官网龙芯下载信息现仅展示版本、包格式、大小与校验值。
This commit is contained in:
mesalogo
2026-08-27 07:45:03 +08:00
parent d9a554b4b1
commit d6fea0c6c2
2 changed files with 10 additions and 8 deletions
+2 -4
View File
@@ -159,9 +159,7 @@
link.tabIndex = -1;
link.classList.add("is-disabled");
setLinkText(link, "龙芯预览包暂不可用");
meta.textContent =
"实验预览 · 仅 DEB · 索引尚未发布或校验失败;" +
"尚未完成真机验证。";
meta.textContent = "实验预览 · 仅 DEB · 索引尚未发布或校验失败。";
};
const setLoongArchFormat = (formatSelect, selected) => {
@@ -201,7 +199,7 @@
meta.textContent =
`GoodBuddy ${verifiedLoongArchPreview.goodBuddyVersion} · ` +
`${formatFileSize(verifiedLoongArchPreview.artifact.size)} · ` +
`实验预览 · 未完成龙芯真机验证 · SHA-256 ` +
`实验预览 · SHA-256 ` +
`${verifiedLoongArchPreview.artifact.sha256.slice(0, 12)}…`;
return;
}
+8 -4
View File
@@ -275,9 +275,10 @@ test("enables only a validated LoongArch preview download", async () => {
assert.equal(link.getAttribute("rel"), "noreferrer");
assert.equal(link.hasAttribute("aria-disabled"), false);
assert.equal(link.classList.contains("is-disabled"), false);
assert.match(meta.textContent, /GoodBuddy 0\.11\.5/);
assert.match(meta.textContent, /178 MB/);
assert.match(meta.textContent, /未完成龙芯真机验证/);
assert.equal(
meta.textContent,
"GoodBuddy 0.11.5 · 178 MB · 实验预览 · SHA-256 aaaaaaaaaaaa…",
);
dom.window.close();
});
@@ -300,7 +301,10 @@ test("keeps the LoongArch preview disabled when its index is unavailable", async
assert.equal(link.getAttribute("aria-disabled"), "true");
assert.equal(link.tabIndex, -1);
assert.equal(link.classList.contains("is-disabled"), true);
assert.match(meta.textContent, /尚未发布或校验失败/);
assert.equal(
meta.textContent,
"实验预览 · 仅 DEB · 索引尚未发布或校验失败。",
);
arch.value = "x64";
arch.dispatchEvent(new window.Event("change"));