mirror of
git://f0xx.org/android_cast
synced 2026-07-29 02:59:00 +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/
|
||||
/build/
|
||||
app/build/
|
||||
app/.cxx/
|
||||
captures/
|
||||
.DS_Store
|
||||
*.apk
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -139,3 +139,6 @@ cat >"${OUT_DIR}/BUILD_INFO.json" <<EOF
|
||||
EOF
|
||||
|
||||
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