From 04d8416911c351c71c93076c85ce3ec078040dff Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 14 Oct 2026 20:44:25 +0800 Subject: [PATCH] fix(fdroid): keep the recipe's version sed from overriding the bridge Flutter The F-Droid recipe works around the old "null" read with `sed 's/${FLUTTER_BRIDGE_VERSION}//'`, and its auto-update copies that line into every new version. The 1.5.0 recipe pinned 3.24.5 and then 3.47.7, but flutter_rust_bridge codegen only works with the Flutter version bridge.yml uses (3.22.3). Pass the unbraced variable to prepare_flutter so that sed no longer matches the call. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01P1grQ39ByRWPUtTBdTzEBF --- flutter/build_fdroid.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flutter/build_fdroid.sh b/flutter/build_fdroid.sh index dc6e21a96..2d25a9220 100755 --- a/flutter/build_fdroid.sh +++ b/flutter/build_fdroid.sh @@ -324,7 +324,11 @@ prebuild) # Install Flutter bridge version - prepare_flutter "${FLUTTER_BRIDGE_VERSION}" "${HOME}/flutter" + # Unbraced on purpose: F-Droid recipes rewrite the braced form with sed to + # pin a version, but the bridge generator only works with the Flutter + # version bridge.yml uses + + prepare_flutter "$FLUTTER_BRIDGE_VERSION" "${HOME}/flutter" # Save changes