dsh-recycle-center 0.4.0 → 0.4.1
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/CHANGELOG.md +7 -0
- package/README.md +12 -6
- package/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -213,28 +213,34 @@ DSH 的附件仓库是**全局一份**、按内容寻址的(不按会话分目
|
|
|
213
213
|
从 npm 安装(版本可控、有 registry 缓存):
|
|
214
214
|
|
|
215
215
|
```bash
|
|
216
|
-
dsh plugin add dsh-recycle-center
|
|
216
|
+
dsh plugin --profile desktop add dsh-recycle-center
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
从 GitHub 安装(DSH 会用 pnpm 按 Git 规格拉取,版本会被固定到提交):
|
|
220
220
|
|
|
221
221
|
```bash
|
|
222
|
-
dsh plugin add github:M1ser1es/dsh-
|
|
222
|
+
dsh plugin --profile desktop add github:M1ser1es/dsh-recycle-center
|
|
223
223
|
```
|
|
224
224
|
|
|
225
225
|
也可以克隆后安装本地目录,适合要改代码的场景:
|
|
226
226
|
|
|
227
227
|
```bash
|
|
228
|
-
git clone https://github.com/M1ser1es/dsh-
|
|
229
|
-
dsh plugin add ./dsh-recycle-center
|
|
228
|
+
git clone https://github.com/M1ser1es/dsh-recycle-center.git dsh-recycle-center
|
|
229
|
+
dsh plugin --profile desktop add ./dsh-recycle-center
|
|
230
230
|
```
|
|
231
231
|
|
|
232
|
+
> **`dsh` 命令不在 PATH 里?** DSH 桌面版自带的 CLI 在安装目录下:
|
|
233
|
+
> `<DSH 安装目录>\resources\runtime\cli\bin\dsh.cmd`。
|
|
234
|
+
> 可以用完整路径调用,或先把它的所在目录加进 PATH。
|
|
235
|
+
>
|
|
236
|
+
> `--profile` 是必填项,代表要装到哪个 profile;桌面版通常就是 `desktop`。
|
|
237
|
+
|
|
232
238
|
装完**重启 DSH**(宿主半的代码只在启动时加载)。
|
|
233
239
|
|
|
234
240
|
卸载前建议先把回收站里的对话恢复,否则它们留在 Windows 回收站里,DSH 界面上看不到:
|
|
235
241
|
|
|
236
242
|
```bash
|
|
237
|
-
dsh plugin remove dsh-recycle-center
|
|
243
|
+
dsh plugin --profile desktop remove dsh-recycle-center
|
|
238
244
|
```
|
|
239
245
|
|
|
240
246
|
## 反馈与开发
|
|
@@ -255,7 +261,7 @@ dsh plugin remove dsh-recycle-center
|
|
|
255
261
|
如果想自己改一版试试:
|
|
256
262
|
|
|
257
263
|
```bash
|
|
258
|
-
git clone https://github.com/M1ser1es/dsh-
|
|
264
|
+
git clone https://github.com/M1ser1es/dsh-recycle-center.git dsh-recycle-center
|
|
259
265
|
dsh plugin add ./dsh-recycle-center
|
|
260
266
|
```
|
|
261
267
|
|
package/index.js
CHANGED
|
@@ -1715,7 +1715,7 @@ export function apply(ctx) {
|
|
|
1715
1715
|
sendJson(res, 200, {
|
|
1716
1716
|
ok: true,
|
|
1717
1717
|
plugin: name,
|
|
1718
|
-
version: '0.4.
|
|
1718
|
+
version: '0.4.1',
|
|
1719
1719
|
home,
|
|
1720
1720
|
homeResolved: resolvedHome !== null,
|
|
1721
1721
|
homeHasSessions: existsSync(join(home, 'sessions')),
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-recycle-center",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "把 DSH 会话删进 Windows 回收站,7 天内可在 DSH 内恢复",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "M1ser1es (https://github.com/M1ser1es)",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/M1ser1es/dsh-
|
|
10
|
+
"url": "git+https://github.com/M1ser1es/dsh-recycle-center.git"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://github.com/M1ser1es/dsh-
|
|
12
|
+
"homepage": "https://github.com/M1ser1es/dsh-recycle-center#readme",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/M1ser1es/dsh-
|
|
14
|
+
"url": "https://github.com/M1ser1es/dsh-recycle-center/issues"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"dsh",
|