docs(skills): AGENTS.md 平台中立化,国内网络换源抽到技能根目录一份
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
# office
|
||||
|
||||
`office: command not found`
|
||||
`office: command not found`:用技能自带入口
|
||||
|
||||
```sh
|
||||
PATH="$(dirname "$AGENT_SKILLS_DEPS")/office/scripts:$PATH" office help
|
||||
```
|
||||
|
||||
`office.core binary missing`
|
||||
`office.core binary missing`:按本机平台下载对应资产到 `bin/officecli`(Windows 存成 `bin/officecli.exe`),再 `chmod +x`
|
||||
|
||||
```sh
|
||||
SK="$(dirname "$AGENT_SKILLS_DEPS")/office"
|
||||
curl -fL --progress-bar -o "$SK/bin/officecli" \
|
||||
https://github.com/iOfficeAI/OfficeCLI/releases/latest/download/officecli-mac-x64
|
||||
curl -fL -o "$SK/bin/officecli" \
|
||||
https://github.com/iOfficeAI/OfficeCLI/releases/latest/download/officecli-<平台>-<架构>
|
||||
chmod +x "$SK/bin/officecli"
|
||||
```
|
||||
|
||||
资产按 `uname -sm` 选:`officecli-mac-x64` / `officecli-mac-arm64` / `officecli-linux-x64` / `officecli-linux-arm64`。下载慢就在地址前加 `https://gh-proxy.com/`。
|
||||
资产名是 `{mac,linux,win}-{x64,arm64}`,如 `officecli-mac-arm64`、`officecli-linux-x64`、`officecli-win-x64.exe`;
|
||||
musl 系统(Alpine)用 `officecli-linux-alpine-{x64,arm64}`。`uname -sm` 可判断平台与架构。
|
||||
|
||||
网络慢或装不上(GitHub 下载 / brew 等):见技能根目录的 `AGENTS.md`。
|
||||
|
||||
Reference in New Issue
Block a user