From bffa66ca7eb53a1a18cecf34a3bc989fa32524c4 Mon Sep 17 00:00:00 2001 From: Sparsh Sam <110058692+sparshsam@users.noreply.github.com> Date: Sun, 28 Jun 2026 02:33:20 -0400 Subject: [PATCH 1/3] Fix CI android: populate out/ directory for Capacitor sync --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27055bf..231473f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,7 +85,27 @@ jobs: NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY }} - name: Prepare static output for Capacitor - run: mkdir -p out + run: | + mkdir -p out/_next + # Copy static assets + cp -r .next/static out/_next/ 2>/dev/null || true + # Copy page HTML files from server build + for f in .next/server/app/*/index.html; do + [ -f "$f" ] || continue + dir="$(basename "$(dirname "$f")")" + mkdir -p "out/$dir" + cp "$f" "out/$dir/index.html" + done + # Root page + [ -f .next/server/app/index.html ] && cp .next/server/app/index.html out/ + # Fallback index + if [ ! -f out/index.html ]; then + cat > out/index.html <<'EOF' +
+ +Loading OpenSprout... +EOF + fi working-directory: apps/web - name: Sync Capacitor From 6c3fea080af0be67a13690df31ecb078b957a819 Mon Sep 17 00:00:00 2001 From: Sparsh Sam <110058692+sparshsam@users.noreply.github.com> Date: Sun, 28 Jun 2026 02:34:39 -0400 Subject: [PATCH 2/3] Fix CI android: chmod +x gradlew before build --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 231473f..2ef72d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,7 +113,7 @@ EOF working-directory: apps/web - name: Build Android (debug) - run: cd android && ./gradlew assembleDebug + run: cd android && chmod +x gradlew && ./gradlew assembleDebug working-directory: apps/web - name: Upload APK From 0f41f445dbe2ebe915033c0fd93a183b8eb94225 Mon Sep 17 00:00:00 2001 From: Sparsh Sam <110058692+sparshsam@users.noreply.github.com> Date: Sun, 28 Jun 2026 02:37:06 -0400 Subject: [PATCH 3/3] Fix CI android: replace heredoc with echo to fix YAML parsing The heredoc EOF terminator was indented inside YAML literal block, causing a YAML parsing error (workflow file issue). --- .github/workflows/ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ef72d5..fb18a8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,11 +100,7 @@ jobs: [ -f .next/server/app/index.html ] && cp .next/server/app/index.html out/ # Fallback index if [ ! -f out/index.html ]; then - cat > out/index.html <<'EOF' - - -Loading OpenSprout... -EOF + echo 'Loading OpenSprout...' > out/index.html fi working-directory: apps/web