refactor(build): unify SDK configuration and release tooling
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:
1 parent
a13a54d5ec
commit
0343e2f723
57 files changed
+1858
-375
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user