dsh-timewarp 0.1.0-beta → 0.1.1-beta

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 CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  > **v0.1.0 Beta**:功能可用,接口与界面仍可能调整。遇到问题请开 issue。
8
8
 
9
+ npm:[`dsh-timewarp@beta`](https://www.npmjs.com/package/dsh-timewarp) · 安装:`dsh plugin --profile desktop add dsh-timewarp@beta`
10
+
9
11
  ![概览](docs/overview.png)
10
12
 
11
13
  ## 为什么不是普通备份
@@ -35,10 +37,20 @@
35
37
 
36
38
  **环境要求**:DSH ≥ 0.2.2-rc.1,Node ≥ 22。
37
39
 
40
+ 从 npm 安装(推荐):
41
+
38
42
  ```bash
39
- dsh plugin --profile desktop add dsh-timewarp
43
+ dsh plugin --profile desktop add dsh-timewarp@beta
40
44
  ```
41
45
 
46
+ `dsh plugin` 会把参数原样转给 profile 目录里的 pnpm,所以也可以用 `npm` / `pnpm` 自己装:
47
+
48
+ ```bash
49
+ npm install dsh-timewarp@beta
50
+ ```
51
+
52
+ > 当前是 **v0.1.0 Beta**,属于预发布版本,必须带 `@beta` 标签(或写死 `dsh-timewarp@0.1.0-beta`)。不带标签时 pnpm 会去要 `latest`,目前也指向这个 Beta,但不保证以后。
53
+
42
54
  从源码链接(开发用):
43
55
 
44
56
  ```bash
@@ -105,6 +117,8 @@ dsh plugin --profile desktop add link:<仓库路径>
105
117
 
106
118
  如果 DSH 起不来,用这个:原生 Windows 窗口,自带运行时,**目标机不需要 Node / .NET / 浏览器**。
107
119
 
120
+ **它不需要安装**:整个目录解压即用,双击 `Timewarp-Rescue.exe` 就跑;不写注册表、不创建桌面快捷方式、不在系统里留任何东西。删掉目录就是卸载。
121
+
108
122
  1. 从 [Releases](https://github.com/L1daye/dsh-timewarp/releases) 下载 `Timewarp-Rescue` 目录。
109
123
  2. 双击 `Timewarp-Rescue.exe`。
110
124
  3. 它读取 `%USERPROFILE%\.dsh\timewarp`(也可用 `--store <路径>` 指定)。
@@ -112,6 +126,17 @@ dsh plugin --profile desktop add link:<仓库路径>
112
126
 
113
127
  界面和 DSH 里那一页是同一份代码,配色、字号都一样。
114
128
 
129
+ ## 从 npm 安装之后
130
+
131
+ `dsh plugin --profile desktop add` 本质是往 `<profile>/package.json` 里写一条依赖。装完可以这样确认:
132
+
133
+ ```bash
134
+ npm view dsh-timewarp version --registry https://registry.npmjs.org
135
+ dsh plugin --profile desktop why dsh-timewarp
136
+ ```
137
+
138
+ 插件目录在 `<DSH_HOME>/profiles/desktop/node_modules/dsh-timewarp`,卸载时连同依赖一起清掉。
139
+
115
140
  ## 常见问题
116
141
 
117
142
  **第一次快照很慢?**