feat: add LoongArch preview download to the website
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
GoodBuddy Agents / Validate Agent source (push) Canceled after 0s
GoodBuddy Agents / Build Linux arm64 Agent (push) Canceled after 0s
GoodBuddy Agents / Build Linux x64 Agent (push) Canceled after 0s

The Chinese Linux download card now includes a LoongArch processor option and fixes its package type to DEB. It reads a separate strictly validated OSS preview index, while the formal six-target release index and English GitHub downloads remain unchanged.

The page keeps three symmetric platform cards, disables only the LoongArch selection when its index is unavailable, and labels the package as unverified on real LoongArch hardware.

Release note: 官网 Linux 下载新增龙芯 LoongArch 处理器选项,选择后提供独立 DEB 预览包;正式下载与更新索引保持不变。
This commit is contained in:
mesalogo
2026-08-26 23:23:27 +08:00
parent b20c10f820
commit d9a554b4b1
8 changed files with 639 additions and 79 deletions
+36 -2
View File
@@ -250,8 +250,9 @@ for (const breakpoint of ["1199px", "959px", "719px"]) {
const requiredCopy = [
"免注册",
"支持信创软硬件的一站式 AI 助手",
"首个支持龙芯的开源桌面 AI 助理产品",
"首个全面覆盖国产化 CPU 架构的开源桌面 AI 助理产品",
"龙芯 LoongArch 独立编译预览版",
"龙芯 LoongArch(实验预览)",
"桌面助手",
"AI 编程工具台",
"Windows、macOS、Linux",
@@ -328,6 +329,18 @@ report(
(html.match(/data-download-format/g) ?? []).length === 3,
"每个平台必须提供安装包类型选择器",
);
report(
/<option\s+value="loong64">龙芯 LoongArch(实验预览)<\/option>/.test(
html,
),
"Linux 处理器选项必须包含龙芯实验预览",
);
report(
/const setLoongArchFormat =[\s\S]*option\.value !== "deb"[\s\S]*formatSelect\.value = "deb"[\s\S]*formatSelect\.disabled = selected/.test(
appJs,
),
"龙芯处理器必须只允许选择 DEB",
);
report(
!/data-release-status|download-release-status/.test(`${html}\n${englishHtml}\n${css}\n${appJs}`),
"官网不得显示下载源状态提示",
@@ -362,6 +375,27 @@ report(
),
"官网必须从 GoodBuddy OSS 加载最新发布索引",
);
report(
appJs.includes(
"https://goodbuddy.oss-cn-beijing.aliyuncs.com/releases/loongarch-preview/latest.json",
),
"官网必须从独立 OSS 索引加载龙芯预览包",
);
report(
/validateLoongArchPreviewIndex\(payload\)/.test(appJs),
"龙芯预览下载链接必须先通过独立索引校验",
);
report(
/catch\s*\{[\s\S]*setLoongArchPreviewUnavailable\(\)/.test(appJs),
"龙芯预览索引失败时必须保持下载入口禁用",
);
report(
releaseIndexJs.includes(
"https://goodbuddy.oss-cn-beijing.aliyuncs.com/releases/loongarch-preview/latest.json",
) &&
/const validateLoongArchPreviewIndex =/.test(releaseIndexJs),
"龙芯预览索引必须使用独立受信任前缀和校验器",
);
report(
appJs.includes("https://github.com/mesalogo/goodbuddy/releases/latest"),
"官网必须保留 GitHub Release 回退地址",
@@ -502,7 +536,7 @@ const expectedDownloadOptions = {
formats: ["dmg", "zip"],
},
linux: {
arches: ["x64", "arm64"],
arches: ["x64", "arm64", "loong64"],
formats: ["AppImage", "deb", "rpm"],
},
};