build(android): build from web/ instead of the loto submodule

web/ and android/ now live in one repository, so the pinned submodule at
android/loto is redundant. Point Capacitor's webDir and the build script at
../web directly, and drop the pin-bumping workflow from the docs.
This commit is contained in:
tiennm99 committed 2026-08-03 18:02:13 +07:00
1 parent aca00644e7
commit d1b68b2fe4
6 files changed
+36 -51

No files matched your search

+3 -3
View File
@@ -2,11 +2,11 @@
"name": "loto-android",
"version": "0.1.0",
"private": true,
"description": "Capacitor wrapper that bundles tiennm99/loto into a fully-offline Android APK.",
"description": "Capacitor wrapper that bundles the web/ app into a fully-offline Android APK.",
"scripts": {
"build:loto": "corepack pnpm@11.1.1 --dir loto install --frozen-lockfile && corepack pnpm@11.1.1 --dir loto run build",
"build:web": "corepack pnpm@11.1.1 --dir ../web install --frozen-lockfile && corepack pnpm@11.1.1 --dir ../web run build",
"sync": "cap sync android",
"build": "npm run build:loto && npm run sync",
"build": "npm run build:web && npm run sync",
"open": "cap open android",
"assemble:debug": "cd android && ./gradlew :app:assembleDebug",
"assemble:release": "cd android && ./gradlew :app:bundleRelease :app:assembleRelease"