refactor(build): unify SDK configuration and release tooling
Gitea CI / Check code and tests (pull_request) Failing after 8m56s
Gitea CI / Build Android APK (pull_request) Skipped
Gitea CI / Build Windows x64 app (pull_request) Skipped
Gitea CI / Audit and package Windows x64 (pull_request) Skipped
Gitea CI / Assemble and validate CI artifacts (pull_request) Skipped
Gitea CI / Gitea CI passed (pull_request) Failing after 4s

Pin Flutter with FVM and share local environment loading across IDE, Python, and Dart entrypoints. Keep CI on the verified preinstalled SDK and skip local overrides.

Extract common build presets, process execution, and file hashing. Propagate project roots through SDK selection and release commands, and migrate macOS release, signing, and DMG orchestration to Python.

Reuse local check suites in CI, support Android source overrides, and update documentation and regression tests.
This commit is contained in:
lingjhf committed 2026-10-06 22:24:32 +08:00
1 parent ca2efdaf18
commit 152c051a29
57 files changed
+1858 -375

No files matched your search

+3 -3
View File
@@ -39,7 +39,7 @@ macOS 宿主窗口继承 `CutdexNativeWindow`,导入 `cutdex_native` 后按 Fl
`NativeContextMenu.show` 接收 `NativeMenuEntry` 和位置,返回选中的操作编号;应用或 UI 包负责执行操作。`NativeFullscreenSession` 接收退出回调,按顺序处理窗口全屏请求。使用 `dispose(exitFullscreen: true)` 在未被替换时恢复窗口;恢复会等待正在进行的转换完成。预览内容和布局由应用管理。
在应用根目录执行 `flutter pub get`;在本包目录执行 `flutter test`。真实窗口与系统拖放还需在对应桌面平台验证。
在应用根目录执行 `fvm dart tool/flutter_local.dart pub get`;在本包目录执行 `python3 ../../tool/project_tools.py flutter test`。真实窗口与系统拖放还需在对应桌面平台验证。
## 原生回归
@@ -48,7 +48,7 @@ macOS 宿主窗口继承 `CutdexNativeWindow`,导入 `cutdex_native` 后按 Fl
macOS 标题栏手势使用真实 AppKit 响应链,文件引用策略使用临时文件与目录:
```sh
flutter build macos --debug --flavor development
python3 tool/build.py macos --mode debug --flavor development
bash packages/cutdex_native/tool/macos/test_header_control_gestures.sh
bash packages/cutdex_native/tool/macos/test_file_drop_policy.sh
```
@@ -56,7 +56,7 @@ bash packages/cutdex_native/tool/macos/test_file_drop_policy.sh
Windows 标题栏回归验证真实 HWND、命中区域、最大化、DPI 与标题栏恢复;先准备 Flutter C++ wrapper:
```sh
flutter build windows --debug --flavor development
python tool/build.py windows --mode debug --flavor development
cmake -S packages/cutdex_native/tool/windows/window_chrome_tests -B build/window_chrome_tests -A x64
cmake --build build/window_chrome_tests --config Release
ctest --test-dir build/window_chrome_tests -C Release --output-on-failure
+3 -3
View File
@@ -12,11 +12,11 @@ Cutdex workspace 内部 Flutter 包,维护通用组件与基础视觉主题,
原生菜单通过 `cutdex_native` 展示,无法展示时回退到 Flutter 菜单。时间线与编辑器的业务样式由应用维护。
在应用根目录执行 `flutter pub get`;在本包目录执行:
在应用根目录执行 `fvm dart tool/flutter_local.dart pub get`;在本包目录执行:
```sh
dart run build_runner build
flutter test
python3 ../../tool/project_tools.py dart run build_runner build
python3 ../../tool/project_tools.py flutter test
```
生成的 Freezed 文件随源码提交。测试维护在本包 `test/`,应用接线测试保留在应用中。