mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
docs: 更新注释与README,补充编译说明和架构描述
- 在 main.c 中添加编译和打包命令的注释 - 在 README.md 中新增“架构与二次开发”章节,说明项目的模块化设计和配置管理
This commit is contained in:
@@ -40,6 +40,13 @@
|
|||||||
|
|
||||||
* **轻量级**:原生 C 语言编写,无臃肿依赖,运行速度极快。
|
* **轻量级**:原生 C 语言编写,无臃肿依赖,运行速度极快。
|
||||||
|
|
||||||
|
## 🏗️ 架构与二次开发
|
||||||
|
|
||||||
|
本项目注重代码的模块化和可维护性,非常适合作为 C 语言桌面程序开发的参考:
|
||||||
|
|
||||||
|
* **统一配置中心**:所有的 UI 尺寸、间距、颜色等常量配置均提取在 `include/config.h` 中,只需修改宏定义即可轻松定制属于你的专属界面风格。
|
||||||
|
* **清晰的全局状态**:全局变量和常量被独立分离在 `src/globals.c` / `include/globals.h` 中管理,使得核心业务逻辑更加整洁。
|
||||||
|
|
||||||
## 📦 下载与安装
|
## 📦 下载与安装
|
||||||
|
|
||||||
您可以从 [Releases](https://github.com/LHY0125/PathEditor/releases) 页面下载最新的安装包 (`PathEditorSetup.exe`)。
|
您可以从 [Releases](https://github.com/LHY0125/PathEditor/releases) 页面下载最新的安装包 (`PathEditorSetup.exe`)。
|
||||||
|
|||||||
Binary file not shown.
+6
-1
@@ -7,7 +7,12 @@
|
|||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "cb_main.h"
|
#include "cb_main.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
编译命令:
|
||||||
|
Remove-Item -Path "obj\*.o" -Force -ErrorAction SilentlyContinue && mingw32-make
|
||||||
|
打包命令:
|
||||||
|
build_installer.bat
|
||||||
|
*/
|
||||||
|
|
||||||
// 主函数
|
// 主函数
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user