dsh-whale-widget 0.2.9 → 0.2.10
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.
- package/README.md +24 -6
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -43,7 +43,24 @@ dsh-whale-widget/
|
|
|
43
43
|
|
|
44
44
|
## 安装
|
|
45
45
|
|
|
46
|
-
### 方式 A
|
|
46
|
+
### 方式 A:直接从 GitHub 安装(推荐)
|
|
47
|
+
|
|
48
|
+
无需本地克隆,一条命令安装:
|
|
49
|
+
|
|
50
|
+
```powershell
|
|
51
|
+
dsh plugin --profile web add github:MeteorNOX/DeepSeek-Balance-Whale-Widget
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
说明:
|
|
55
|
+
|
|
56
|
+
- 装完后插件会出现在 DSH 的**插件管理页面**里,之后可以直接在页面里更新,无需再手动执行命令
|
|
57
|
+
- 网络环境需要代理时,先设置代理环境变量再执行:
|
|
58
|
+
```powershell
|
|
59
|
+
$env:http_proxy="http://<ip>:<port>"; $env:https_proxy="http://<ip>:<port>"; $env:all_proxy="socks5://<ip>:<port>"; dsh plugin --profile web add github:MeteorNOX/DeepSeek-Balance-Whale-Widget
|
|
60
|
+
```
|
|
61
|
+
- 安装完成后重启 `dsh web`,再 F5 刷新浏览器
|
|
62
|
+
|
|
63
|
+
### 方式 B:本地安装(从当前仓库)
|
|
47
64
|
|
|
48
65
|
在**仓库根目录**(`DeepSeek-Balance-Whale-Widget`,即 `package.json` 所在目录)执行:
|
|
49
66
|
|
|
@@ -62,7 +79,7 @@ dsh plugin --profile web add link:.
|
|
|
62
79
|
- 安装完成后重启 `dsh web`,再 F5 刷新浏览器
|
|
63
80
|
- **如果之后移动了源码目录**,必须重新执行一次 `dsh plugin --profile web add link:.<新路径>`。若提示已存在/冲突,先 `dsh plugin --profile web remove dsh-whale-widget` 再重新 add
|
|
64
81
|
|
|
65
|
-
### 方式
|
|
82
|
+
### 方式 C:发布到 npm 后安装
|
|
66
83
|
|
|
67
84
|
```powershell
|
|
68
85
|
dsh plugin --profile web add dsh-whale-widget
|
|
@@ -77,10 +94,11 @@ dsh plugin --profile web add dsh-whale-widget
|
|
|
77
94
|
|
|
78
95
|
步骤:
|
|
79
96
|
1. 确保 pnpm 可用(没有就先:npm install -g pnpm)
|
|
80
|
-
2. 在 Web profile
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
97
|
+
2. 在 Web profile 安装(任选一种来源):
|
|
98
|
+
首选,直接从 GitHub 安装(无需本地克隆,装完可在插件管理页面里更新):
|
|
99
|
+
dsh plugin --profile web add github:MeteorNOX/DeepSeek-Balance-Whale-Widget
|
|
100
|
+
或从本地仓库链接安装(例如本地克隆的仓库根目录):
|
|
101
|
+
dsh plugin --profile web add link:.<仓库绝对路径>
|
|
84
102
|
(注意:仓库根目录就是插件包,不要写成 link:.\dsh-whale-widget 这种带子目录的路径)
|
|
85
103
|
3. 如果报 pnpm 阻止构建脚本(allowBuilds 相关),在 C:\Users\<用户名>\.dsh\profiles\web\pnpm-workspace.yaml 的 allowBuilds 下加对应的包 key,然后重跑
|
|
86
104
|
4. 重启 dsh web,然后 F5 刷新浏览器
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-whale-widget",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "DSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件(含今日已用、峰谷定价、随机台词、音效与每轮消耗统计)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
"cordis.patch.yml",
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/MeteorNOX/DeepSeek-Balance-Whale-Widget.git"
|
|
23
|
+
},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/MeteorNOX/DeepSeek-Balance-Whale-Widget/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/MeteorNOX/DeepSeek-Balance-Whale-Widget#readme",
|
|
20
28
|
"dsh": {
|
|
21
29
|
"bundle": {
|
|
22
30
|
"patch": "./cordis.patch.yml"
|