From bb60ba4a24ca96a85334f667f9933a444b782d62 Mon Sep 17 00:00:00 2001 From: TianXiaRi <17951954+tianxiari@user.noreply.gitee.com> Date: Wed, 2 Dec 2026 08:40:17 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=A1=A8=E4=B8=8E=20Linux=20=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E7=A7=BB=E6=A4=8D=E7=89=88=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ tools/patch-readme-platforms.cjs | 29 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tools/patch-readme-platforms.cjs diff --git a/README.md b/README.md index 9e855c6..f2cac22 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,17 @@ > 内置角色「小钠」= 钠(Na)拟人,来自 EL-Cross-Lab。也支持导入任意 Live2D 模型,并按「普通桌宠」风格使用。 > **仓库**:GitHub(主) · Gitee 国内镜像 · 欢迎 PR / issue +## 平台支持 + +| 平台 | 状态 | 仓库 | +|---|---|---| +| Windows 10/11 | 官方版本,本仓库 | 就是这里 | +| Linux(X11 / Wayland) | 社区移植版(XWayland + KDE 全局光标桥接 + 安装脚本) | [git.hinomori-minori.com/deepseek/SodiumPet](https://git.hinomori-minori.com/deepseek/SodiumPet) | + +> **Linux 版说明**:由社区基于本仓库移植,新增 Linux 桌面支持——默认通过 XWayland 保留透明置顶 / 拖拽 / 鼠标穿透,KDE Plasma 下用 KWin 脚本桥接全局光标,附 `scripts/linux/install.sh` 一键安装与自启动。本仓库保持 Windows 官方版本;Linux 相关问题请到该移植仓库提 issue。 +> +> 欢迎把自己的移植 / 分支告诉我,我会加进这张表(请注明基于的 commit 与许可)。 + ## 功能一览 - **Live2D 立绘**:透明置顶窗口、拖动、摸头、视线跟随、双击/右键菜单 diff --git a/tools/patch-readme-platforms.cjs b/tools/patch-readme-platforms.cjs new file mode 100644 index 0000000..44c7447 --- /dev/null +++ b/tools/patch-readme-platforms.cjs @@ -0,0 +1,29 @@ +const fs = require('fs') +const p = 'C:/Users/ASUS/Documents/deepseek-harness/default-workspace/desktop-pet/README.md' +let text = fs.readFileSync(p, 'utf8') + +const section = `## 平台支持 + +| 平台 | 状态 | 仓库 | +|---|---|---| +| Windows 10/11 | 官方版本,本仓库 | 就是这里 | +| Linux(X11 / Wayland) | 社区移植版(XWayland + KDE 全局光标桥接 + 安装脚本) | [git.hinomori-minori.com/deepseek/SodiumPet](https://git.hinomori-minori.com/deepseek/SodiumPet) | + +> **Linux 版说明**:由社区基于本仓库移植,新增 Linux 桌面支持——默认通过 XWayland 保留透明置顶 / 拖拽 / 鼠标穿透,KDE Plasma 下用 KWin 脚本桥接全局光标,附 \`scripts/linux/install.sh\` 一键安装与自启动。本仓库保持 Windows 官方版本;Linux 相关问题请到该移植仓库提 issue。 +> +> 欢迎把自己的移植 / 分支告诉我,我会加进这张表(请注明基于的 commit 与许可)。 + +` + +if (!text.includes('## 平台支持')) { + const idx = text.indexOf('## 功能一览') + if (idx < 0) { + console.error('anchor not found') + process.exit(1) + } + text = text.slice(0, idx) + section + text.slice(idx) + fs.writeFileSync(p, text, 'utf8') + console.log('platform section added') +} else { + console.log('already present') +}