From 5625daa598a0221385e484fe149fd357c5cbf2e0 Mon Sep 17 00:00:00 2001 From: bin <17426470+boyan01@users.noreply.github.com> Date: Fri, 12 Jun 2026 13:22:29 +0800 Subject: [PATCH 1/5] Resolve manual build Flutter version dynamically --- .github/workflows/manual-build.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index 95cd0a6510..fd22247d30 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -32,7 +32,7 @@ on: - 'v*' env: - FLUTTER_VERSION: ${{ github.event.inputs.flutter_version || '3.41.9' }} + FLUTTER_VERSION: ${{ github.event.inputs.flutter_version }} FLUTTER_CHANNEL: ${{ github.event.inputs.flutter_channel || 'stable' }} jobs: @@ -56,11 +56,28 @@ jobs: - run: sudo apt-get install libstdc++6 - uses: actions/checkout@v4 + + - name: Resolve Flutter version + id: flutter-version + shell: bash + run: | + if [ -n "$FLUTTER_VERSION" ]; then + echo "version=$FLUTTER_VERSION" >> "$GITHUB_OUTPUT" + exit 0 + fi + + version="$(curl -fsSL https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json | python3 -c 'import json, sys; data = json.load(sys.stdin); stable = data["current_release"]["stable"]; print(next(release["version"] for release in data["releases"] if release["hash"] == stable))')" + if [ -z "$version" ]; then + echo "Failed to resolve latest stable Flutter version" >&2 + exit 1 + fi + echo "version=$version" >> "$GITHUB_OUTPUT" + - uses: subosito/flutter-action@v2 with: # https://github.com/subosito/flutter-action/issues/345#issuecomment-2657332687 channel: 'master' - flutter-version: ${{ env.FLUTTER_VERSION }} + flutter-version: ${{ steps.flutter-version.outputs.version }} - uses: actions-rs/toolchain@v1 with: @@ -279,6 +296,12 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 + if: env.FLUTTER_VERSION == '' + with: + channel: ${{ env.FLUTTER_CHANNEL }} + + - uses: subosito/flutter-action@v2 + if: env.FLUTTER_VERSION != '' with: channel: ${{ env.FLUTTER_CHANNEL }} flutter-version: ${{ env.FLUTTER_VERSION }} From 046f05673f6ca623552fdc4b6f3b1c0c05d0ef2a Mon Sep 17 00:00:00 2001 From: bin <17426470+boyan01@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:12:40 +0800 Subject: [PATCH 2/5] Restore pinned Flutter version for Windows manual builds --- .github/workflows/manual-build.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index fd22247d30..bc4c25bbbd 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -296,15 +296,9 @@ jobs: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 - if: env.FLUTTER_VERSION == '' with: channel: ${{ env.FLUTTER_CHANNEL }} - - - uses: subosito/flutter-action@v2 - if: env.FLUTTER_VERSION != '' - with: - channel: ${{ env.FLUTTER_CHANNEL }} - flutter-version: ${{ env.FLUTTER_VERSION }} + flutter-version: ${{ env.FLUTTER_VERSION || '3.41.9' }} - uses: actions-rs/toolchain@v1 with: From 343bfa3af63595b2fcd9abe714d8aba05c542dc8 Mon Sep 17 00:00:00 2001 From: boyan01 <17426470+boyan01@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:31:01 +0800 Subject: [PATCH 3/5] fix: update default app version to 4.3.0 --- lib/utils/system/package_info.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/system/package_info.dart b/lib/utils/system/package_info.dart index 30cbf19086..ab34407c41 100644 --- a/lib/utils/system/package_info.dart +++ b/lib/utils/system/package_info.dart @@ -8,7 +8,7 @@ import '../logger.dart'; // auto added by .github/workflows/manual-build.yml const _kAppVersion = String.fromEnvironment( 'APP_VERSION', - defaultValue: '1.15.0', + defaultValue: '4.3.0', ); const _kAppBuildNumber = String.fromEnvironment( 'APP_BUILD_NUMBER', From 888374073348f8be8741b80c14eedd49a6aa4106 Mon Sep 17 00:00:00 2001 From: boyan01 <17426470+boyan01@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:35:07 +0800 Subject: [PATCH 4/5] fix: update Windows runner version in manual build workflow to windows-2022 --- .github/workflows/manual-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index bc4c25bbbd..f010f08914 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -290,7 +290,7 @@ jobs: overwrite: true build-windows: - runs-on: windows-latest + runs-on: windows-2022 if: contains(github.event.inputs.platforms, 'windows') || github.event.inputs.platforms == '' steps: - uses: actions/checkout@v4 From 1116fe9b593ed244421327d95dc8e9dc2bdc7a14 Mon Sep 17 00:00:00 2001 From: boyan01 <17426470+boyan01@users.noreply.github.com> Date: Fri, 12 Jun 2026 17:36:03 +0800 Subject: [PATCH 5/5] fix: update flutter-version to use the environment variable directly in manual-build.yml --- .github/workflows/manual-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml index f010f08914..bffa6947de 100644 --- a/.github/workflows/manual-build.yml +++ b/.github/workflows/manual-build.yml @@ -298,7 +298,7 @@ jobs: - uses: subosito/flutter-action@v2 with: channel: ${{ env.FLUTTER_CHANNEL }} - flutter-version: ${{ env.FLUTTER_VERSION || '3.41.9' }} + flutter-version: ${{ env.FLUTTER_VERSION }} - uses: actions-rs/toolchain@v1 with: