refactor: 整体迁移控制面至MySQL + 替换UI框架为Element Plus
1. 移除naive-ui依赖,迁移前端至Element Plus 2. 重构后端数据库层,切换为MySQL替代SQLite 3. 调整项目部署架构,停止exe打包改为源码部署 4. 新增设备上报接口与相关数据库模型 5. 优化配置路径与SQL语法,替换为MySQL占位符格式 6. 调整站点名称与文案,统一为「37du 插件管理平台」 7. 新增SQLite到MySQL迁移脚本
This commit is contained in:
@@ -40,5 +40,5 @@ AI 智能体开发约束 & 项目执行规范
|
||||
- 发版统一走 agent CLI(在 desktop/ 目录下执行:.venv\Scripts\python.exe -m controlplane.tools.agent_cli,中心机本机 + 管理密钥,即控制面 /api/admin/pkg 与 shell 源):
|
||||
- 壳子发版:改 desktop/webhost/tools/shell.version 与 install.iss 的 MyAppVersion → desktop/webhost/frontend 执行 npm run build → PyInstaller 依次打 desktop/webhost/tools/37du-host.spec、37du-host-runner.spec、37du-host-console.spec → ISCC.exe desktop/webhost/tools/install.iss 出安装包;然后 agent_cli shell-release <安装包> --version <新版本> [--notes "说明"]。
|
||||
- 插件发版:根级 plugins/<id>/ 目录打成 zip(根目录含 plugin.json)后 agent_cli publish <插件.zip> --id <id> --version <v>;权限用 agent_cli grant / revoke 管理。
|
||||
- 中心机发版:改过 controlplane 后端后 PyInstaller desktop/controlplane/tools/37du-center.spec --distpath desktop/controlplane/dist-exe --workpath desktop/controlplane/build-exe --noconfirm。
|
||||
- 中心机发版:控制面为源码部署(宝塔 gunicorn 8800,不打包 exe)。改后端代码后按 .trae/documents/控制面前后端部署SOP.md「后端部署流程」上传文件 + 重启项目;改前端后按同一文档「前端部署流程」构建并发布到静态站 8090。
|
||||
- 发布后:执行机下次启动自动检测下载、前端提示后点击升级;插件登录后按权限自动下载更新。
|
||||
Reference in New Issue
Block a user