Skip to content

Commit 6655df3

Browse files
committed
Skip web build in debug APK workflow (Capacitor loads from live URL)
1 parent 09da118 commit 6655df3

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/build-debug-apk.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ jobs:
4646
- name: Install dependencies
4747
run: npm ci
4848

49-
- name: Build web app
50-
run: npm run build
51-
52-
- name: Strip docs from dist (if any)
53-
run: rm -rf dist/docs 2>/dev/null || true
49+
# Note: we don't run `npm run build` because the Capacitor wrapper loads
50+
# the live web app from https://spendwisev2.vercel.app — nothing local
51+
# is shipped inside the APK. We just need a non-empty dist/ folder for
52+
# `npx cap sync` to be happy.
53+
- name: Create placeholder dist
54+
run: |
55+
mkdir -p dist
56+
echo '<!doctype html><meta charset="utf-8"><title>SpendWise</title>' > dist/index.html
5457
5558
- name: Sync Capacitor
5659
run: npx cap sync android

0 commit comments

Comments
 (0)