Skip to content

Commit eb70865

Browse files
committed
docs(channel): avoid hardcoded package versions in install guides
1 parent 8467370 commit eb70865

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

channel/docs/agent-install.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ If this step returns `429 Rate Limit Exceeded`, ClawHub is rate-limiting. Do not
1414

1515
```bash
1616
cd /tmp
17-
npm pack @1panel-dev/clawswarm
17+
PKG=$(npm pack @1panel-dev/clawswarm)
1818
mkdir -p /tmp/clawswarm-pkg
1919
cd /tmp/clawswarm-pkg
20-
tar xzf /tmp/1panel-dev-clawswarm-1.0.1.tgz
20+
tar xzf "/tmp/$PKG"
2121
cp -r /tmp/clawswarm-pkg/package /home/node/.openclaw/extensions/clawswarm
2222
cd /home/node/.openclaw/extensions/clawswarm
2323
npm install --omit=dev

channel/docs/agent-install.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ openclaw plugins install @1panel-dev/clawswarm
1414

1515
```bash
1616
cd /tmp
17-
npm pack @1panel-dev/clawswarm
17+
PKG=$(npm pack @1panel-dev/clawswarm)
1818
mkdir -p /tmp/clawswarm-pkg
1919
cd /tmp/clawswarm-pkg
20-
tar xzf /tmp/1panel-dev-clawswarm-1.0.1.tgz
20+
tar xzf "/tmp/$PKG"
2121
cp -r /tmp/clawswarm-pkg/package /home/node/.openclaw/extensions/clawswarm
2222
cd /home/node/.openclaw/extensions/clawswarm
2323
npm install --omit=dev

channel/docs/human-install.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ If this step returns `429 Rate Limit Exceeded`, ClawHub is rate-limiting. Do not
1414

1515
```bash
1616
cd /tmp
17-
npm pack @1panel-dev/clawswarm
17+
PKG=$(npm pack @1panel-dev/clawswarm)
1818
mkdir -p /tmp/clawswarm-pkg
1919
cd /tmp/clawswarm-pkg
20-
tar xzf /tmp/1panel-dev-clawswarm-1.0.1.tgz
20+
tar xzf "/tmp/$PKG"
2121
```
2222

2323
This extracts the package into `/tmp/clawswarm-pkg/package/`.

channel/docs/human-install.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ openclaw plugins install @1panel-dev/clawswarm
1414

1515
```bash
1616
cd /tmp
17-
npm pack @1panel-dev/clawswarm
17+
PKG=$(npm pack @1panel-dev/clawswarm)
1818
mkdir -p /tmp/clawswarm-pkg
1919
cd /tmp/clawswarm-pkg
20-
tar xzf /tmp/1panel-dev-clawswarm-1.0.1.tgz
20+
tar xzf "/tmp/$PKG"
2121
```
2222

2323
这会把安装包解压到 `/tmp/clawswarm-pkg/package/`

0 commit comments

Comments
 (0)