-
点击 Use this template > Create a new repository
-
将你在第 1 步中创建好的仓库克隆到本地
-
进入本地的仓库文件夹并运行依赖安装命令
pnpm install
-
打开 public/info.json 文件,自定义插件信息,详情参见 Bob 官网文档。以下是必须修改的字段:
identifier:插件的唯一标识符,必须由数字、小写字母和 . 组成。name:插件名称,例如:openai-translator。homepage:插件的主页,这里需要你填写你的插件的 GitHub 仓库地址。appcast:插件的更新地址。
-
(可选),更新 package.json 文件,例如
name字段,将其修改为你的插件名称。 -
开发完成后,记得先更新 public/info.json 文件中的版本号,然后再运行以下命令打包插件
pnpm run bump
这条命令会先将插件打包输出到 dist 文件夹中,而后自动更新 appcast.json 文件。
-
Notifications
You must be signed in to change notification settings - Fork 0
Template project for building Bob translate plugin
License
liby/bob-plugin-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Template project for building Bob translate plugin