1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 06:39:09 +03:00

Fix rebuild.sh after Docker CI leaves stale app/.cxx paths.

Clear app/.cxx before gradlew clean (Docker uses /opt/android-sdk in CMake
cache on mounted repos). CI now removes .cxx after build; gitignore app/.cxx.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-06-02 22:19:51 +02:00
parent 4e045f68e6
commit 4e74a92457
3 changed files with 9 additions and 0 deletions

View File

@@ -159,6 +159,11 @@ for ARCH_ABI in ${ARCH_ABIS}; do
done
echo "==> Building debug APK (JAVA_HOME=$JAVA_HOME)"
# Docker CI on a mounted repo leaves app/.cxx with /opt/android-sdk paths; that breaks local clean/build.
rm -rf "$ROOT/app/.cxx"
if [[ -d "$ROOT/app/build" ]] && ! rm -rf "$ROOT/app/build" 2>/dev/null; then
echo "WARN: app/build is not writable (often root-owned after Docker). Run: sudo rm -rf app/build" >&2
fi
./gradlew --stop
./gradlew clean
./gradlew --build-cache assembleDebug