From 4b34932468da8dffb9f0edb0f0c45b49b3405e8e Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 17 Apr 2026 10:03:25 +0000 Subject: [PATCH] =?UTF-8?q?chore(mobile):=20Phase=207=20=E6=94=B6=E5=B0=BE?= =?UTF-8?q?=20=E2=80=94=20=E7=A7=BB=E9=99=A4=20resources/mobile=20?= =?UTF-8?q?=E5=AD=90=E6=A8=A1=E5=9D=97=20+=20=E5=88=B7=E6=96=B0=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移动端已迁移到 dootask-app 独立仓库(Expo + EAS Build),主仓库不再承担移动端 打包(Phase 6 已断开 CI/构建链路),现在把 git 残留与文档一并清理。 - .gitmodules:删除 submodule "resources/mobile" 条目 - resources/mobile:git rm 子模块引用(目录本身由 .gitmodules 控制,已为空) - README_PUBLISH.md "编译 App" 章节改写:指向 dootask-app 仓库的 EAS Build 流程, 本地 appbuild 现在只负责前端资源(对齐 Phase 6 改动) 剩余无 mobile 残留的前端/后端 UA 兼容代码(Base.php / UserDevice.php 等)在 Phase 5 的 84f225f3f 里已经加了 dootask_expo 支持,保持向后兼容旧 EEUI 壳直到所有 用户升级。 Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitmodules | 3 --- README_PUBLISH.md | 21 ++++++++++++++++----- resources/mobile | 1 - 3 files changed, 16 insertions(+), 9 deletions(-) delete mode 160000 resources/mobile diff --git a/.gitmodules b/.gitmodules index 670933a56..32d75439b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ [submodule "resources/drawio"] path = resources/drawio url = https://github.com/jgraph/drawio.git -[submodule "resources/mobile"] - path = resources/mobile - url = https://github.com/kuaifan/dootask-app.git diff --git a/README_PUBLISH.md b/README_PUBLISH.md index be0a42d3f..830ee1274 100644 --- a/README_PUBLISH.md +++ b/README_PUBLISH.md @@ -18,14 +18,25 @@ npm run build # 编译前端 说明: - 执行 `npm run build` 作用是生成网页端; -- 客户端 (Windows、Mac、Android) 会通过 GitHub Actions 自动生成并发布;所以,如果要自动发布只需要提交git并推送即可; -- 如果想手动生成客户端执行 `./cmd electron` 根据提示选择操作。 +- 桌面客户端(Windows、Mac)会通过 GitHub Actions 自动生成并发布;所以,如果要自动发布只需要提交 git 并推送即可; +- 如果想手动生成桌面客户端执行 `./cmd electron` 根据提示选择操作。 +## 编译移动端 App -## 编译 App +移动端(iOS / Android)已迁移到独立仓库 [kuaifan/dootask-app](https://github.com/kuaifan/dootask-app) +(Expo + EAS Build)。构建流程: ```shell -./cmd appbuild publish # 编译生成App需要的资源 +# 1. 本仓库:构建前端资源 +./cmd appbuild + +# 2. 拷贝到 dootask-app 仓库 +cp -r public/* ~/workspaces/dootask-app/assets/web/ + +# 3. dootask-app 仓库:EAS Build 本地或 CI 触发 +cd ~/workspaces/dootask-app +npx eas build --platform android --profile preview +# 或在 dootask-app 的 GitHub Actions 里手动触发 "EAS Build" workflow ``` -编译完后进入 `resources/mobile` EEUI框架目录内打包 Android 或 iOS 应用(Android 以实现 GitHub Actions 自动发布) +详见 dootask-app 仓库的 README。 diff --git a/resources/mobile b/resources/mobile deleted file mode 160000 index 4e8ee678b..000000000 --- a/resources/mobile +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4e8ee678b312dea2d578922ee873d6801335a045