mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-11 03:13:40 +00:00
fix: build loto submodule with pnpm
This commit is contained in:
1 parent
a4e603bb59
commit
4c8fff0a25
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -14,7 +14,7 @@ into the APK at build time. No network is required at runtime.
|
||||
|
||||
```
|
||||
loto/ (git submodule, pinned SHA)
|
||||
└── npm run build → loto/build/ (SvelteKit static output)
|
||||
└── pnpm run build → loto/build/ (SvelteKit static output)
|
||||
↓
|
||||
npx cap sync
|
||||
↓
|
||||
@@ -30,7 +30,7 @@ and the `<audio>` element all work offline.
|
||||
## Stack
|
||||
|
||||
- Capacitor 8 (Android wrapper)
|
||||
- Loto upstream: SvelteKit 2 + Vite 7 + `@sveltejs/adapter-static` + `@vite-pwa/sveltekit`
|
||||
- Loto upstream: SvelteKit 2 + Vite 8 + `@sveltejs/adapter-static` + `@vite-pwa/sveltekit`
|
||||
- minSdk 24 · targetSdk 36 · JDK 21 · Node 22 (Capacitor 8 requires both)
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"description": "Capacitor wrapper that bundles tiennm99/loto into a fully-offline Android APK.",
|
||||
"scripts": {
|
||||
"build:loto": "npm --prefix loto ci && npm --prefix loto run build",
|
||||
"build:loto": "corepack pnpm@11.1.1 --dir loto install --frozen-lockfile && corepack pnpm@11.1.1 --dir loto run build",
|
||||
"sync": "cap sync android",
|
||||
"build": "npm run build:loto && npm run sync",
|
||||
"open": "cap open android",
|
||||
|
||||
Reference in new issue
Block a user