mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 04:15:45 +08:00
* 重构文档结构:移除 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]>
26 lines
733 B
Plaintext
26 lines
733 B
Plaintext
---
|
|
title: "Distribute Plugins via GitHub"
|
|
---
|
|
|
|
You can upload your plugin to GitHub, create a Release for the repository, and upload the `.lbpkg` file, allowing other users to install it in LangBot.
|
|
|
|
## Build Plugin
|
|
|
|
Execute the following command in the plugin directory:
|
|
|
|
```bash
|
|
lbp build
|
|
```
|
|
|
|
This will generate a `.lbpkg` file in the `dist` directory.
|
|
|
|
## Create Release
|
|
|
|
Upload your plugin to GitHub, then go to the Release page of your plugin repository, click to create a Release, and upload the `.lbpkg` file you just built.
|
|
|
|
<img width="600" src="/images/zh/plugin/dev/dist/github_release.png" />
|
|
|
|
## Install Plugin
|
|
|
|
In LangBot's plugin management page, click the top-right corner to select the GitHub installation method.
|