Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions scripts/check_website.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ for (const keyword of [
'fetchCatalogWithRetry',
'NVIDIA CUDA',
'RTX 20 / 30 / 40 / 50',
'AMD RX 9000',
'amd-rocm-experimental',
'rocm-gfx120x',
'RX 6000 / RX 7000 / Ryzen AI Max',
'data-amd-release-link',
'safeGithubReleaseUrl',
'TensorRT 可选版',
'tensorrt-optional',
'RTX 20 / GTX 16 可选',
Expand All @@ -113,6 +119,15 @@ for (const keyword of [
]) {
if (!downloadChooser.includes(keyword)) fail(`download chooser must contain: ${keyword}`)
}
const nvidiaRow = downloadChooser.indexOf("['nvidia', 'windows-portable', 'nvidia'")
const amdRow = downloadChooser.indexOf("['amd', 'amd-rocm-experimental', 'rocm-gfx120x', 'x64'")
const openclRow = downloadChooser.indexOf("['opencl', 'windows-portable', 'opencl'")
if (!(nvidiaRow >= 0 && amdRow > nvidiaRow && openclRow > amdRow)) {
fail('download chooser must place AMD RX 9000 between NVIDIA CUDA and OpenCL')
}
for (const keyword of ['ROCm 實驗版', 'Experimental ROCm', 'ROCm 実験版', 'ROCm 실험판', 'ROCm รุ่นทดลอง', 'ROCm thử nghiệm']) {
if (!downloadChooser.includes(keyword)) fail(`download chooser must localize AMD RX 9000: ${keyword}`)
}
if (downloadChooser.includes('tensorrt-advanced')) fail('download chooser must use the stable TensorRT catalog category')
if (downloadChooser.includes('RTX 30 系及以下可选')) fail('TensorRT recommendation must not target RTX 30')
for (const keyword of ['www.goagent.top', 'goagent.top', 'Response.redirect', 'env.ASSETS.fetch']) {
Expand Down
6 changes: 3 additions & 3 deletions website/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ https://www.goagent.top/download/ -> https://goagent.top/download/ (301)
- Cloudflare Pages 只部署 `goagent.top` 的静态页面,不存放大型安装包。
- Cloudflare R2 桶 `lizzieyzy-next-downloads` 通过 `download.goagent.top` 提供当前稳定版文件。
- 用户唯一公开下载入口是 `https://goagent.top/download/`。
- 官网 `/download/` 从 `https://download.goagent.top/channels/stable/catalog.json` 读取公开目录,并按 Windows 显卡与 Mac 芯片展示下载按钮。
- 官网 `/download/` 从 `https://download.goagent.top/channels/stable/catalog.json` 读取公开目录,并按 Windows 显卡与 Mac 芯片展示下载按钮。Windows 列表包含 NVIDIA CUDA、AMD RX 9000 ROCm 实验版、OpenCL、CPU、无引擎和 TensorRT 可选版。
- 发布维护期间目录中的下载地址可暂时指向 GitHub;官网允许 `download.goagent.top` 与 `github.com` 两种经过校验的 HTTPS 地址。目录加载失败时直接提供 GitHub Releases 备用入口,不跳回本页。
- R2 只保留当前稳定版;历史版本、源码与未镜像资产继续由 GitHub 提供。
- R2 只保留当前稳定版;历史版本、源码与未镜像资产继续由 GitHub 提供。AMD 仅镜像 `gfx120x` 的 RX 9000 实验包,RX 6000、RX 7000 与 Ryzen AI Max 实验包继续从当前 GitHub Release 下载。
- GoAgent 作为实验围棋智能体,仍从 `https://github.com/wimi321/GoAgent/releases` 下载。

R2 bucket CORS 只允许官网读取目录:
Expand Down Expand Up @@ -164,7 +164,7 @@ curl https://goagent.top/sitemap.xml | grep -i goagent.top
- `https://www.goagent.top/` 与 `https://www.goagent.top/download/` 均以 301 跳转到主域名的同一路径。
- `https://download.goagent.top/` 与 `/index.html` 均以 301 跳转到 `https://goagent.top/download/`。
- 页面中包含 `LizzieYzy Next`、`GoAgent`、官网下载入口和隐私说明入口。
- `https://goagent.top/download/` 能读取稳定版目录并显示 Windows、macOS、CPU 与 TensorRT 下载项。
- `https://goagent.top/download/` 能读取稳定版目录并显示 Windows、macOS、CPU、RX 9000 ROCm 实验版与 TensorRT 下载项;RX 9000 位于 NVIDIA CUDA 与 OpenCL 之间且不显示推荐标签。
- `https://download.goagent.top/channels/stable/catalog.json`、`/releases/*` 和 Range 请求保持正常,不受根路径跳转规则影响。
- `catalog.json` 对 `https://goagent.top` 返回正确的 `Access-Control-Allow-Origin`。

Expand Down
Loading
Loading