dsh-tv-player 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -29,20 +29,26 @@ DSH 电视插件 —— 在 DeepSeek Harness 里直播 **8 个确定稳定的频
29
29
 
30
30
  ## 安装
31
31
 
32
- ### 方式一:npm 安装(已发布到 npm,最简单)
32
+ ### 方式一:编辑 profile(推荐,已发布到 npm)
33
33
 
34
- ```sh
35
- npm install dsh-tv-player
36
- ```
34
+ 1. 打开目标 profile 的 `package.json`(例如 `~/.dsh/profiles/<profile>/package.json`),把 `dsh-tv-player` 同时加到 `dependencies` 和 `dsh.profile.bundles`:
37
35
 
38
- 然后在目标 profile 的 `package.json` 里,把依赖加到 `dependencies`,并**务必**在 `dsh.profile.bundles` 里加 `"dsh-tv-player"`:
36
+ ```json
37
+ {
38
+ "dependencies": { "dsh-tv-player": "^1.4.0" },
39
+ "dsh": { "profile": { "bundles": [ "...", "dsh-tv-player" ] } }
40
+ }
41
+ ```
39
42
 
40
- ```json
41
- "dependencies": { "dsh-tv-player": "^1.4.0" },
42
- "dsh": { "profile": { "bundles": [ "...", "dsh-tv-player" ] } }
43
- ```
43
+ > ⚠️ `dependencies` 和 `dsh.profile.bundles` **两个都要加**——漏了 `bundles` 插件不会被加载,界面/路由都不会出现。
44
+
45
+ 2. 在 profile 目录执行:
46
+
47
+ ```sh
48
+ pnpm install
49
+ ```
44
50
 
45
- 最后 `pnpm install`(或 `dsh plugin --profile <profile> add dsh-tv-player`)并重启 DSH。
51
+ 3. 重启 DSH。
46
52
 
47
53
  ### 方式二:本地 tgz(自用 / 内部分发)
48
54
 
@@ -63,7 +69,7 @@ npm pack # 产出 dsh-tv-player-<version>.tgz
63
69
  ```
64
70
  3. 安装并重启:
65
71
  ```sh
66
- pnpm install # 或 dsh plugin --profile <profile> add file:<tgz 路径>
72
+ pnpm install # 在 profile 目录执行
67
73
  # 然后重启 DSH
68
74
  ```
69
75
 
@@ -138,7 +144,7 @@ Web(lib/client.js)
138
144
 
139
145
  ```sh
140
146
  npm pack # 产出 dsh-tv-player-<version>.tgz
141
- dsh plugin --profile <profile> add file:<tgz 路径> # 安装
147
+ # 手动安装:编辑 profile 的 package.json(dependencies + dsh.profile.bundles),然后 pnpm install
142
148
  ```
143
149
 
144
150
  修改 `lib/` 后**升版本号**重新打包安装(pnpm 对同版本 file 依赖不重取);仅客户端改动可刷新页面生效,Host 改动需重启 DSH。
@@ -146,9 +152,8 @@ dsh plugin --profile <profile> add file:<tgz 路径> # 安装
146
152
  ## 回滚(卸载)
147
153
 
148
154
  ```sh
149
- # 1) 从 profile 移除依赖
150
- dsh plugin --profile <profile> remove dsh-tv-player
151
- # 2) 编辑 profile 的 package.json,从 dsh.profile.bundles 里删掉 "dsh-tv-player"
155
+ # 1) 编辑 profile 的 package.json:从 dependencies 和 dsh.profile.bundles 里都删掉 "dsh-tv-player"
156
+ # 2) 在 profile 目录执行 pnpm install
152
157
  # 3) 重启 DSH
153
158
  ```
154
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tv-player",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "DSH 电视插件:在 DeepSeek Harness 里直播 8 个确定稳定的频道(CCTV-9 纪录、CCTV-12 社会与法与浙江/延边/香港/内蒙古/河北/东方卫视),支持临时频道搜索,白底播放条与全宽电视画面,Vibe coding 时的好伴侣。",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",