Files
LangBot/zh/plugin/dev/publish/github.mdx
T
Xiaoyu SuandJunyan Chin 310c566148 refactor: migration to mintlify
* 重构文档结构:移除 docs 目录,调整文件组织结构

* Reorder "插件 SDK API" section in docs.json

* Refactor and clarify various documentation sections

* Refine warnings and info boxes across multiple docs

* Refactor and simplify Japanese documentation content

* Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management

* Update blog link and add description in docs.json

---------

Co-authored-by: Junyan Chin <[email protected]>
2026-02-21 23:55:53 +08:00

26 lines
652 B
Plaintext

---
title: "通过 GitHub 分发插件"
---
您可以将您的插件上传至 GitHub ,为仓库创建 Release 并上传 `.lbpkg` 文件,其他用户即可在 LangBot 上安装。
## 打包插件
在插件目录下执行命令:
```bash
lbp build
```
这将生成一个 `.lbpkg` 文件在`dist`目录。
## 创建 Release
请将该插件上传 GitHub,并前往插件仓库的 Release 页面,点击创建 Release,并上传刚刚打包的`.lbpkg`文件。
<img width="600" src="/images/zh/plugin/dev/dist/github_release.png" />
## 安装插件
请在 LangBot 的插件管理页面,点击右上角即可选择 GitHub 安装方式。