(feat): improve dx for mobile app
This commit is contained in:
parent
ff41763d76
commit
7dc68d1867
4 changed files with 8 additions and 1 deletions
|
|
@ -18,9 +18,11 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev:mobile:raw": "tauri android dev",
|
||||
"dev:mobile:raw": "tauri android dev --host ${TAURI_DEV_HOST:-127.0.0.1}",
|
||||
"start-adb:mobile:raw": "adb devices",
|
||||
"build:mobile:raw": "tauri android build",
|
||||
"dev:mobile": "if command -v nix >/dev/null 2>&1; then nix develop --command bun dev:mobile:raw; else bun dev:mobile:raw; fi",
|
||||
"start-adb:mobile": "if command -v nix >/dev/null 2>&1; then nix develop --command bun start-adb:mobile:raw; else bun start-adb:mobile:raw; fi",
|
||||
"build:mobile": "bun run render-version.ts && if command -v nix >/dev/null 2>&1; then nix develop --command bun build:mobile:raw; else bun build:mobile:raw; fi && bun run render-version.ts --unrender",
|
||||
"gen-icons": "tauri icon ./logo.json && bun scripts/sync-electron-icons.ts",
|
||||
"format": "bunx prettier --write .",
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ android {
|
|||
}
|
||||
buildTypes {
|
||||
getByName("debug") {
|
||||
applicationIdSuffix = ".dev"
|
||||
manifestPlaceholders["usesCleartextTraffic"] = "true"
|
||||
isDebuggable = true
|
||||
isJniDebuggable = true
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@
|
|||
}
|
||||
},
|
||||
"bundle": {
|
||||
"android": {
|
||||
"debugApplicationIdSuffix": ".dev"
|
||||
},
|
||||
"active": true,
|
||||
"targets": [],
|
||||
"icon": [
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
"preview:web": "cd apps/web && bun run preview",
|
||||
"dev:mobile": "cd apps/tauri && bun dev:mobile",
|
||||
"build:mobile": "cd apps/tauri && bun run build:mobile",
|
||||
"start-adb:mobile": "cd apps/tauri && bun run start-adb:mobile",
|
||||
"dev:desktop": "cd apps/electron && bun run dev",
|
||||
"build:desktop": "cd apps/electron && bun run package",
|
||||
"run:desktop": "TENSAMIN_DEB=\"$PWD/apps/electron/release/Tensamin-$(node -p \\\"require('./package.json').version\\\")-linux-amd64.deb\" nix run .#localPathForDev --impure",
|
||||
|
|
|
|||
Loading…
Reference in a new issue