- Add root dev:android script delegating to frontend - Add Android dev scripts and wrapper to resolve ANDROID_SDK_ROOT/ANDROID_HOME (Linux/WSL) - Keep Vite running when Android run fails and document troubleshooting in frontend README - Ignore generated frontend/android project in git
68 lines
2.1 KiB
JSON
68 lines
2.1 KiB
JSON
{
|
|
"name": "wallet-gen",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"main": "electron/main.cjs",
|
|
"scripts": {
|
|
"vite": "vite",
|
|
"dev": "concurrently --kill-others -n Vite,Electron \"vite\" \"wait-on http://localhost:5173 && cross-env NODE_ENV=development ELECTRON_RUN_AS_NODE= electron .\"",
|
|
"android:ensure": "sh -c '[ -d android ] || cap add android'",
|
|
"dev:web:android": "vite --host 0.0.0.0 --port 5173",
|
|
"dev:android:run": "wait-on tcp:5173 && sh ./scripts/cap-run-android-live.sh",
|
|
"dev:android": "npm run android:ensure && concurrently -n Vite,Android \"npm run dev:web:android\" \"npm run dev:android:run\"",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"dist": "vite build && electron-builder",
|
|
"cap:sync": "vite build && cap sync android"
|
|
},
|
|
"build": {
|
|
"appId": "com.walletgen.app",
|
|
"productName": "wallet-gen",
|
|
"icon": "public/icons/icon.png",
|
|
"files": ["dist/**", "electron/**"],
|
|
"extraResources": [
|
|
{ "from": "resources", "to": "." }
|
|
],
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"linux": {
|
|
"target": "AppImage",
|
|
"category": "Finance"
|
|
},
|
|
"win": {
|
|
"target": ["nsis", "portable"]
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@capacitor/core": "^7.0.0",
|
|
"@capacitor/filesystem": "^7.0.0",
|
|
"@noble/curves": "^1.8.0",
|
|
"@noble/hashes": "^1.7.0",
|
|
"@scure/bip32": "^1.6.0",
|
|
"@scure/bip39": "^1.5.0",
|
|
"bech32": "^2.0.0",
|
|
"bs58": "^6.0.0",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@capacitor/android": "^7.0.0",
|
|
"@capacitor/cli": "^7.0.0",
|
|
"@eslint/js": "^9.39.1",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^5.1.1",
|
|
"concurrently": "^9.2.1",
|
|
"cross-env": "^10.1.0",
|
|
"electron": "^40.8.0",
|
|
"eslint": "^9.39.1",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
"globals": "^16.5.0",
|
|
"vite": "^7.3.1",
|
|
"wait-on": "^9.0.4"
|
|
}
|
|
}
|