From 06f2b9ec9750ed9c3588efb7838233a4b9558a22 Mon Sep 17 00:00:00 2001 From: zarzet Date: Sun, 14 Jun 2026 02:28:57 +0700 Subject: [PATCH] ci(ios): strip CRLF from ffmpeg plugin scripts before pod install The ffmpeg_kit_flutter_new_full pub package ships setup_ios.sh with CRLF line endings, so its podspec prepare_command failed with '/bin/bash^M: bad interpreter'. Normalize the plugin's shell scripts in the pub cache before building iOS. --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4769f2ec..9871253e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -257,6 +257,15 @@ jobs: - name: Get Flutter dependencies run: flutter pub get + - name: Normalize ffmpeg plugin shell scripts (strip CRLF) + run: | + find "$HOME/.pub-cache/hosted" -path "*ffmpeg_kit_flutter_new_full*/scripts/*.sh" -type f -print0 | + while IFS= read -r -d '' f; do + perl -pi -e 's/\r$//' "$f" + chmod +x "$f" + echo "Normalized line endings: $f" + done + - name: Generate app icons run: dart run flutter_launcher_icons