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:
lingjhf committed 2026-10-06 23:34:15 +08:00
1 parent a13a54d5ec
commit 0343e2f723
57 files changed
+1858 -375

No files matched your search

+1 -13
View File
@@ -1,9 +1,6 @@
name: Prepare Flutter build environment
description: Configure persistent caches, verify Flutter and resolve locked dependencies.
inputs:
flutter-version:
description: Required Flutter framework version
required: true
configure-java:
description: Configure Flutter to use the runner's JAVA_HOME
default: 'false'
@@ -15,16 +12,7 @@ runs:
run: ./tool/gitea/prepare-build-cache.ps1
- name: Verify Flutter version
shell: pwsh
env:
REQUIRED_FLUTTER_VERSION: ${{ inputs.flutter-version }}
run: |
$ErrorActionPreference = 'Stop'
$output = flutter --version --machine
if ($LASTEXITCODE -ne 0) { throw 'Cannot read Flutter version.' }
$version = $output | ConvertFrom-Json
if ($version.frameworkVersion -ne $env:REQUIRED_FLUTTER_VERSION) {
throw "Flutter $env:REQUIRED_FLUTTER_VERSION required; found $($version.frameworkVersion)."
}
run: python tool/gitea/verify_flutter_version.py
- name: Configure Flutter Java
if: ${{ inputs.configure-java == 'true' }}
shell: pwsh