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)。