From f968f64de89264db612b88771a5666a1ba334f71 Mon Sep 17 00:00:00 2001 From: vjrj Date: Sun, 19 Jul 2026 06:36:25 +0200 Subject: [PATCH] =?UTF-8?q?ci(release):=20fix=20tesseract=20build=20?= =?UTF-8?q?=E2=80=94=20use=20root=20gradlew=20with=20:tesseract4android=20?= =?UTF-8?q?task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index c7d83c2..31c5812 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -77,7 +77,8 @@ jobs: # Install the exact NDK the project pins, if the image lacks it. ndkv=$(grep -RhoE 'ndkVersion[^0-9]*[0-9][0-9.]+' "$t4a" | grep -oE '[0-9]+\.[0-9.]+' | head -1 || true) [ -n "${ndkv:-}" ] && (yes | sdkmanager "ndk;$ndkv" >/dev/null 2>&1 || true) - ( cd "$t4a/tesseract4android" && ./gradlew --no-daemon assembleStandardRelease ) + # gradlew lives at the repo root, task belongs to the :tesseract4android module. + ( cd "$t4a" && ./gradlew --no-daemon :tesseract4android:assembleStandardRelease ) aar_dst=$(find ${PUB_CACHE:+$PUB_CACHE} "$HOME/.pub-cache" /root/.pub-cache /sdks 2>/dev/null \ -path '*flutter_tesseract_ocr-0.4.31/android/libs/tesseract4android-release.aar' | head -1) cp "$t4a/tesseract4android/build/outputs/aar/tesseract4android-standard-release.aar" "$aar_dst"