diff --git a/README.md b/README.md index a31d802..4e1e93b 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,13 @@ * **轻量级**:原生 C 语言编写,无臃肿依赖,运行速度极快。 +## 🏗️ 架构与二次开发 + +本项目注重代码的模块化和可维护性,非常适合作为 C 语言桌面程序开发的参考: + +* **统一配置中心**:所有的 UI 尺寸、间距、颜色等常量配置均提取在 `include/config.h` 中,只需修改宏定义即可轻松定制属于你的专属界面风格。 +* **清晰的全局状态**:全局变量和常量被独立分离在 `src/globals.c` / `include/globals.h` 中管理,使得核心业务逻辑更加整洁。 + ## 📦 下载与安装 您可以从 [Releases](https://github.com/LHY0125/PathEditor/releases) 页面下载最新的安装包 (`PathEditorSetup.exe`)。 diff --git a/bin/PathEditor.exe b/bin/PathEditor.exe index 5d0174c..cc98533 100644 Binary files a/bin/PathEditor.exe and b/bin/PathEditor.exe differ diff --git a/src/main.c b/src/main.c index 5b5d435..ebd2be2 100644 --- a/src/main.c +++ b/src/main.c @@ -7,7 +7,12 @@ #include "ui.h" #include "cb_main.h" - +/* +编译命令: +Remove-Item -Path "obj\*.o" -Force -ErrorAction SilentlyContinue && mingw32-make +打包命令: +build_installer.bat +*/ // 主函数 int main(int argc, char **argv)