dsh-notify-tray 0.1.0 → 0.1.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 +13 -10
- package/README.zh-CN.md +13 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,26 +21,29 @@ On macOS the whale is a menu-bar icon that follows the menu-bar colour, with a s
|
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- Windows: install Git from <https://git-scm.com/download/win> (the defaults are fine), then restart DSH.
|
|
27
|
-
- macOS: run `git --version` once in Terminal and follow the prompt to install the command-line tools.
|
|
24
|
+
The plugin is published on npm as [`dsh-notify-tray`](https://www.npmjs.com/package/dsh-notify-tray). Installing from npm needs nothing beyond DSH itself — no Git required.
|
|
28
25
|
|
|
29
26
|
**Option 1 — from inside DSH (recommended)**
|
|
30
|
-
Open DSH **Plugins → Add plugin**,
|
|
27
|
+
Open DSH **Plugins → Add plugin**, type `dsh-notify-tray` into the input box and click **Install**.
|
|
31
28
|
|
|
32
29
|
**Option 2 — command line**
|
|
33
30
|
|
|
34
31
|
```sh
|
|
35
32
|
# Desktop app (the dsh command bundled with the app)
|
|
36
|
-
dsh plugin --profile desktop add
|
|
33
|
+
dsh plugin --profile desktop add dsh-notify-tray
|
|
37
34
|
# Or the web / CLI profile
|
|
38
|
-
dsh plugin --profile web add
|
|
39
|
-
#
|
|
40
|
-
dsh plugin --profile desktop add
|
|
35
|
+
dsh plugin --profile web add dsh-notify-tray
|
|
36
|
+
# Pin a specific version
|
|
37
|
+
dsh plugin --profile desktop add dsh-notify-tray@0.1.0
|
|
41
38
|
```
|
|
42
39
|
|
|
43
|
-
|
|
40
|
+
**Option 3 — from the Git repository** (latest unreleased code)
|
|
41
|
+
|
|
42
|
+
Paste `https://github.com/ROYLeXJ/dsh-notify-tray.git` into **Plugins → Add plugin**, or run `dsh plugin --profile desktop add https://github.com/ROYLeXJ/dsh-notify-tray.git`. You can also clone the repo and install from a local directory: `dsh plugin --profile desktop add /path/to/dsh-notify-tray`.
|
|
43
|
+
|
|
44
|
+
This route **requires Git**; without it you'll see `ERR_PNPM_GIT_RESOLVE_FAILED … 'git' is not recognized as an internal or external command`. On Windows install Git from <https://git-scm.com/download/win> (the defaults are fine) and restart DSH; on macOS run `git --version` once in Terminal and follow the prompt to install the command-line tools.
|
|
45
|
+
|
|
46
|
+
Restart DSH after installing. To update: `dsh plugin --profile desktop update dsh-notify-tray`. To uninstall: `dsh plugin --profile desktop remove dsh-notify-tray`.
|
|
44
47
|
|
|
45
48
|
## Configuration
|
|
46
49
|
|
package/README.zh-CN.md
CHANGED
|
@@ -21,26 +21,29 @@ macOS 上鲸鱼是菜单栏图标,颜色自动跟随菜单栏,旁边显示 `
|
|
|
21
21
|
|
|
22
22
|
## 安装
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- Windows:先到 <https://git-scm.com/download/win> 下载安装 Git(一路默认即可),装完重启 DSH。
|
|
27
|
-
- macOS:终端里运行一次 `git --version`,按提示安装命令行工具即可。
|
|
24
|
+
插件已发布到 npm:[`dsh-notify-tray`](https://www.npmjs.com/package/dsh-notify-tray)。从 npm 安装只需要 DSH 本身,**不需要装 Git**。
|
|
28
25
|
|
|
29
26
|
**方式一:在 DSH 里装(推荐)**
|
|
30
|
-
打开 DSH「插件 → 添加插件」,输入框里填 `
|
|
27
|
+
打开 DSH「插件 → 添加插件」,输入框里填 `dsh-notify-tray`,点「安装」。
|
|
31
28
|
|
|
32
29
|
**方式二:命令行**
|
|
33
30
|
|
|
34
31
|
```sh
|
|
35
32
|
# 桌面版(App 内置的 dsh 命令)
|
|
36
|
-
dsh plugin --profile desktop add
|
|
33
|
+
dsh plugin --profile desktop add dsh-notify-tray
|
|
37
34
|
# 或者 Web / 命令行 profile
|
|
38
|
-
dsh plugin --profile web add
|
|
39
|
-
#
|
|
40
|
-
dsh plugin --profile desktop add
|
|
35
|
+
dsh plugin --profile web add dsh-notify-tray
|
|
36
|
+
# 指定版本
|
|
37
|
+
dsh plugin --profile desktop add dsh-notify-tray@0.1.0
|
|
41
38
|
```
|
|
42
39
|
|
|
43
|
-
|
|
40
|
+
**方式三:从 Git 仓库装**(想用还没发版的最新代码时)
|
|
41
|
+
|
|
42
|
+
在「插件 → 添加插件」里填 `https://github.com/ROYLeXJ/dsh-notify-tray.git`,或运行 `dsh plugin --profile desktop add https://github.com/ROYLeXJ/dsh-notify-tray.git`;也可以先克隆仓库再从本地目录安装:`dsh plugin --profile desktop add /path/to/dsh-notify-tray`。
|
|
43
|
+
|
|
44
|
+
这条路**需要本机装有 Git**,没有 Git 会报 `ERR_PNPM_GIT_RESOLVE_FAILED … 'git' 不是内部或外部命令`。Windows 先到 <https://git-scm.com/download/win> 下载安装(一路默认即可),装完重启 DSH;macOS 在终端里运行一次 `git --version`,按提示安装命令行工具即可。
|
|
45
|
+
|
|
46
|
+
装好后重启 DSH。更新:`dsh plugin --profile desktop update dsh-notify-tray`。卸载:`dsh plugin --profile desktop remove dsh-notify-tray`。
|
|
44
47
|
|
|
45
48
|
## 设置
|
|
46
49
|
|