From 5c145e30772f3a30af75769a8748424732311461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Copenclaw=E2=80=9D?= Date: Sat, 7 Mar 2026 16:15:52 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20Windows=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 📝 Windows 构建请求 (WINDOWS_BUILD_REQUEST.md) - 说明 Linux 服务器无法编译 Windows EXE - 提供两种解决方案 - 详细操作步骤 - 📝 更新 README (添加 Windows 编译说明) 预计工时:15min 影响范围:发布流程 --- mobile-eda/README.md | 24 ++++- mobile-eda/docs/WINDOWS_BUILD_REQUEST.md | 107 +++++++++++++++++++++++ 2 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 mobile-eda/docs/WINDOWS_BUILD_REQUEST.md diff --git a/mobile-eda/README.md b/mobile-eda/README.md index 82c6194..a9de747 100644 --- a/mobile-eda/README.md +++ b/mobile-eda/README.md @@ -413,10 +413,30 @@ MIT License **版本**: v1.1.0 **状态**: 🟢 专业版已发布 **最后更新**: 2026-03-07 -**最新提交**: `03e0e3f` +**最新提交**: `待推送` **Git 标签**: `v1.1.0` ✅ **元件库**: 12 种元件 (基础 4 + 扩展 8) **撤销/重做**: 50 步历史记录 **高级功能**: 差分对/总线/自动布局 ✅ **打包**: Windows/Android/Linux/Web ✅ -**发布说明**: [docs/RELEASE_v1.1.0.md](docs/RELEASE_v1.1.0.md) +**发布说明**: [docs/RELEASE_v1.1.0.md](docs/RELEASE_v1.1.0.md) +**Windows 构建**: [docs/WINDOWS_BUILD_REQUEST.md](docs/WINDOWS_BUILD_REQUEST.md) + +--- + +## ⚠️ Windows EXE 编译说明 + +当前服务器是 **Linux 系统**,无法编译 Windows EXE。 + +**请在 Windows 电脑上执行**: + +```powershell +git clone https://git.jiloukeji.com/Harven/mobile-eda.git +cd mobile-eda +flutter pub get +flutter build windows --release +``` + +**输出**: `build/windows/runner/Release/mobile_eda.exe` + +详见 [Windows 构建请求](docs/WINDOWS_BUILD_REQUEST.md) diff --git a/mobile-eda/docs/WINDOWS_BUILD_REQUEST.md b/mobile-eda/docs/WINDOWS_BUILD_REQUEST.md new file mode 100644 index 0000000..c8738d5 --- /dev/null +++ b/mobile-eda/docs/WINDOWS_BUILD_REQUEST.md @@ -0,0 +1,107 @@ +# Windows EXE 构建请求 + +**致**: 王总 +**日期**: 2026-03-07 +**主题**: Windows EXE 编译说明 + +--- + +## ⚠️ 当前情况 + +**服务器环境**: Linux (阿里云 ECS) +**问题**: 无法编译 Windows EXE +**原因**: Windows EXE 必须在 Windows 系统上编译 + +--- + +## ✅ 解决方案 + +### 方案 A: 在您的 Windows 电脑上编译 (推荐,5 分钟) + +```powershell +# 1. 克隆代码 +git clone https://git.jiloukeji.com/Harven/mobile-eda.git +cd mobile-eda + +# 2. 获取依赖 +flutter pub get + +# 3. 编译 Windows EXE +flutter build windows --release + +# 4. 输出位置 +# build/windows/runner/Release/mobile_eda.exe +``` + +**然后上传到 Gitea Release**: +1. 访问:`https://git.jiloukeji.com/Harven/mobile-eda/releases/tag/v1.1.0` +2. 点击 "Attach files" +3. 上传 `mobile_eda.exe` 或压缩成 ZIP 后上传 + +--- + +### 方案 B: 使用自动构建 (10-15 分钟) + +我已经配置了 **GitHub Actions**,会自动构建所有平台。 + +**触发自动构建**: +```bash +# 推送新标签 +git tag -a v1.1.1 -m "Release v1.1.1" +git push origin v1.1.1 +``` + +**自动构建会生成**: +- ✅ `mobile-eda-v1.1.1-windows-x64.zip` +- ✅ `mobile-eda-v1.1.1-android.apk` +- ✅ `mobile-eda-v1.1.1-linux-x64.tar.gz` +- ✅ `mobile-eda-v1.1.1-web.zip` + +**构建产物会自动上传到 Release 页面!** + +--- + +## 📋 当前 Git 状态 + +| 项目 | 状态 | +|------|------| +| **源代码** | ✅ 已推送 (`febaf53`) | +| **Git 标签** | ✅ `v1.1.0` 已创建 | +| **Release 页面** | ✅ 已创建 | +| **自动构建** | ✅ 已配置 | +| **Windows EXE** | ⏳ 需要 Windows 环境编译 | + +--- + +## 🎯 推荐操作 + +### 立即执行 (在 Windows 上) + +```powershell +# 1. 检查 Flutter +flutter doctor + +# 2. 编译 +cd mobile-eda +flutter build windows --release + +# 3. 测试 +cd build/windows/runner/Release +.\mobile_eda.exe + +# 4. 压缩 +Compress-Archive -Path * -DestinationPath mobile-eda-v1.1.0-windows-x64.zip + +# 5. 上传到 Release 页面 +``` + +--- + +## 📞 需要帮助? + +如果编译遇到问题,请告诉我错误信息,我会帮您解决! + +--- + +**文档**: [docs/QUICK_BUILD_WINDOWS.md](docs/QUICK_BUILD_WINDOWS.md) +**Release**: https://git.jiloukeji.com/Harven/mobile-eda/releases/tag/v1.1.0