mirror of
git://f0xx.org/android_cast
synced 2026-07-29 06:58:51 +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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/build/
|
/build/
|
||||||
app/build/
|
app/build/
|
||||||
|
app/.cxx/
|
||||||
captures/
|
captures/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.apk
|
*.apk
|
||||||
|
|||||||
@@ -159,6 +159,11 @@ for ARCH_ABI in ${ARCH_ABIS}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "==> Building debug APK (JAVA_HOME=$JAVA_HOME)"
|
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 --stop
|
||||||
./gradlew clean
|
./gradlew clean
|
||||||
./gradlew --build-cache assembleDebug
|
./gradlew --build-cache assembleDebug
|
||||||
|
|||||||
@@ -139,3 +139,6 @@ cat >"${OUT_DIR}/BUILD_INFO.json" <<EOF
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "==> Phase: done"
|
echo "==> Phase: done"
|
||||||
|
|
||||||
|
# Mounted-repo Docker runs must not leave /opt/android-sdk paths in app/.cxx on the host.
|
||||||
|
rm -rf "$ROOT/app/.cxx"
|
||||||
|
|||||||
Reference in New Issue
Block a user