feat: one-click setup-plugin.mjs + start scripts + README

This commit is contained in:
2026-09-01 18:59:28 +08:00
parent e9879a41bf
commit 2da59b8190
4 changed files with 100 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# DSHWatch 脚本
## 启动中继服务器
Linux/macOS:
bash scripts/start.sh
Windows:
scripts\start.bat
(首次会复制 config.example.json 到 config.json,请改 token。)
## 把 dsh-watch 插件接进 DSH profile
node scripts/setup-plugin.mjs desktop
node scripts/setup-plugin.mjs web
脚本会:在 profile 的 package.json 加 link 依赖 + bundles 列表,并创建 node_modules/dsh-watch 链接。
然后重启 DSH,并在 profile 的 cordis.patch.yml 里给 dsh-watch 配 mode/serverUrl/userId/token。
## 说明
- keystore.properties / keystore/ 不进 git。
- 手表 rpk 与手机 APK 需同一套签名(包名 com.dshwatch.app)。