mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-31 04:45:23 +08:00
23 lines
642 B
Markdown
23 lines
642 B
Markdown
# 通过 GitHub 分发插件
|
|
|
|
您可以将您的插件上传至 GitHub ,为仓库创建 Release 并上传 `.lbpkg` 文件,其他用户即可在 LangBot 上安装。
|
|
|
|
## 打包插件
|
|
|
|
在插件目录下执行命令:
|
|
|
|
```bash
|
|
lbp build
|
|
```
|
|
|
|
这将生成一个 `.lbpkg` 文件在`dist`目录。
|
|
|
|
## 创建 Release
|
|
|
|
请将该插件上传 GitHub,并前往插件仓库的 Release 页面,点击创建 Release,并上传刚刚打包的`.lbpkg`文件。
|
|
|
|
<img width="600" src="/assets/image/zh/plugin/dev/dist/github_release.png" />
|
|
|
|
## 安装插件
|
|
|
|
请在 LangBot 的插件管理页面,点击右上角即可选择 GitHub 安装方式。 |