mobile-eda/docs/WINDOWS_BUILD_REQUEST.md

108 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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