dsh-mobile-access 1.0.0 → 1.0.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/README.md +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,20 +30,30 @@ dsh web authentication required; reopen the URL printed by dsh web.
|
|
|
30
30
|
|
|
31
31
|
## 安装
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
推荐使用官方 DSH CLI 一次安装。已发布到 npm:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
dsh plugin --profile web add dsh-mobile-access@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
`dsh plugin` 会在 profile 目录执行 pnpm 安装,并自动把声明了 `dsh.bundle.patch` 的包追加到 `dsh.profile.bundles`;不需要手工编辑 `cordis.patch.yml` 或 bundle 列表。
|
|
40
|
+
|
|
41
|
+
从本目录安装(开发机、未发布版本或离线环境):
|
|
34
42
|
|
|
35
43
|
```bash
|
|
36
44
|
cd /Users/open/Documents/Stocks/plugins/dsh-mobile-access
|
|
37
45
|
npm run verify
|
|
46
|
+
dsh plugin --profile web add /Users/open/Documents/Stocks/plugins/dsh-mobile-access
|
|
38
47
|
```
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
也可以使用 `npm pack` 生成 tgz 后安装:
|
|
41
50
|
|
|
42
|
-
```
|
|
43
|
-
|
|
51
|
+
```bash
|
|
52
|
+
npm pack
|
|
53
|
+
dsh plugin --profile web add /absolute/path/to/dsh-mobile-access-1.0.1.tgz
|
|
44
54
|
```
|
|
45
55
|
|
|
46
|
-
|
|
56
|
+
如果 DSH 正在运行,安装后的 host bundle 可能需要重启才能加载;插件管理器提示 `restart-required` 时,**不要自行重启**,按项目约定通知用户手工重启 DSH,用户确认「已重启」后再继续。已有环境也可以继续使用 DSH 插件管理入口的 `install_bundle`,目标为本目录的绝对路径;两种方式等价。
|
|
47
57
|
|
|
48
58
|
## 使用
|
|
49
59
|
|
package/package.json
CHANGED