From 46ac6a748aeb679826c3acf2139accd653425d63 Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Thu, 20 Aug 2026 15:03:31 +0800 Subject: [PATCH] =?UTF-8?q?modify:=20=E4=B8=BAuv=20run=20build=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BB=85=E6=9B=BF=E6=8D=A2mbank=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ test_internal_mqtt_client.py | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e23e945..9e96e60 100644 --- a/README.md +++ b/README.md @@ -490,10 +490,20 @@ uv run build pyinstaller # Nuitka 打包 uv run build nuitka + +# 仅重新打包 .mbank 模块文件(第三方依赖不变时,更新只需替换 mbank 文件) +uv run build --only mbank + +# 只执行指定步骤,跳过其余流程 +uv run build --only mbank,prepare,vue ``` 构建过程包括:模块加密打包 → 资源复制 → PyInstaller/Nuitka 打包 → 数据库初始化 → 前端编译 → VFS 挂载。 +`--only ` 可选步骤:`mbank`(模块打包)、`prepare`(准备构建目录)、 +`obfuscate`(PyArmor 混淆,仅 pyinstaller 模式)、`pack`(PyInstaller/Nuitka 打包)、 +`clean`(清理临时文件)、`vue`(Vue 前端构建);可逗号分隔或重复传多个。 + 详见 [插件开发指南](src/plugins/README.md)。 ### 常用命令 diff --git a/test_internal_mqtt_client.py b/test_internal_mqtt_client.py index b114e7d..3202813 100644 --- a/test_internal_mqtt_client.py +++ b/test_internal_mqtt_client.py @@ -16,4 +16,5 @@ async def main(): await client.stop() if __name__ == "__main__": - asyncio.run(main()) \ No newline at end of file + asyncio.run(main()) + \ No newline at end of file