Repository navigation
docs: 下载页为 Linux 用户提示 archlinuxcn 源 - #293
Merged
Merged
Conversation
Signed-off-by: nlsdt <nlsdt@nlsdt.cc>
nlsdt
marked this pull request as ready for review
September 19, 2026 14:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
是否包含破坏性变更
改动说明
下载页「为你的设备推荐」区域,对 Linux 用户增加一行提示,指向下载页的 Arch Linux 小节:
splayer-next已收录于 archlinuxcn 源,Arch 系用户直接pacman -S安装更合适,不必下载 AppImage。中英文文案同步。为什么是「所有 Linux 用户」而不是只对 Arch 系显示:浏览器拿不到发行版信息。发行版不在
navigator.userAgent里;唯一可能带信息的 UA-CH,其Sec-CH-UA-Platform-Version按规范在 Linux 上返回空字符串(WICG UA-CH §3.10:「If platform is either "Linux" or "Fuchsia": return the empty string」),且 Firefox / Safari 根本不实现 UA-CH。downloadAssets.ts里原有的注释(「Linux 无法可靠识别发行版」)说的也是同一件事。所以这里做成对 Linux 用户一律提示,非 Arch 系忽略即可关联 Issue
此pr依赖 #292
测试情况
pnpm docs:build通过,文案已进入构建产物;#arch-linux锚点,中英文页面锚点均已生成;docs/不在tsconfig.node.json/tsconfig.web.json的 include 范围内,pnpm typecheck不覆盖该目录。截图 / 录屏
自查清单
pnpm formatpnpm build:native验证;未手写native/*/index.d.tsdev分支提交(本层基于下层分支)AI 协作声明
本 PR 使用了ai 进行协作完成
使用模型:deepseek-v4.1-falsh