Caution
本项目还处在开发阶段,API 接口可能随时发生变化,敬请谅解。
This project is still in development. The API may change at any time, so please bear with us.
一个基于 Class Widgets 2 的插件模板。
- 安装 Class Widgets 2 SDK 依赖 / Install the Class Widgets 2 SDK dependencies
pip install class-widgets-sdk- 在终端运行
cw-plugin-pack以打包插件 / Runcw-plugin-packto pack the plugin in the terminal
cw-plugin-pack- 在 Class Widgets 2 -> "设置" -> "插件"中导入打包好的插件 / Import the packed plugin in "Settings" -> "Plugins" in Class Widgets 2
通过 GitHub Actions 实现自动发布功能,推送 tag 时自动生成 release。
- 推送 tag 到 GitHub(格式:
v*.*.*):
git tag v1.0.0
git push origin v1.0.0-
GitHub Actions 会自动:
- 使用
cw-plugin-pack打包插件 - 生成
.cwplugin和.zip两种格式 - 创建 GitHub Release 并上传发布包
- 使用
-
在 GitHub Release 页面下载发布包
本项目基于 MIT 协议开源,详情请参阅 LICENSE 文件。
The project is licensed under the MIT license. Please refer to the LICENSE file for details.