(feat): improve dx for mobile app
All checks were successful
/ build-web (push) Successful in 1m19s
/ build-desktop (linux) (push) Successful in 6m22s
/ build-mobile (push) Successful in 15m12s
/ release (push) Successful in 33s

This commit is contained in:
Alois 2026-06-13 13:44:30 +02:00
commit 7dc68d1867
4 changed files with 8 additions and 1 deletions

View file

@ -18,9 +18,11 @@
} }
}, },
"scripts": { "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", "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", "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", "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", "gen-icons": "tauri icon ./logo.json && bun scripts/sync-electron-icons.ts",
"format": "bunx prettier --write .", "format": "bunx prettier --write .",

View file

@ -40,6 +40,7 @@ android {
} }
buildTypes { buildTypes {
getByName("debug") { getByName("debug") {
applicationIdSuffix = ".dev"
manifestPlaceholders["usesCleartextTraffic"] = "true" manifestPlaceholders["usesCleartextTraffic"] = "true"
isDebuggable = true isDebuggable = true
isJniDebuggable = true isJniDebuggable = true

View file

@ -25,6 +25,9 @@
} }
}, },
"bundle": { "bundle": {
"android": {
"debugApplicationIdSuffix": ".dev"
},
"active": true, "active": true,
"targets": [], "targets": [],
"icon": [ "icon": [

View file

@ -22,6 +22,7 @@
"preview:web": "cd apps/web && bun run preview", "preview:web": "cd apps/web && bun run preview",
"dev:mobile": "cd apps/tauri && bun dev:mobile", "dev:mobile": "cd apps/tauri && bun dev:mobile",
"build:mobile": "cd apps/tauri && bun run build: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", "dev:desktop": "cd apps/electron && bun run dev",
"build:desktop": "cd apps/electron && bun run package", "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", "run:desktop": "TENSAMIN_DEB=\"$PWD/apps/electron/release/Tensamin-$(node -p \\\"require('./package.json').version\\\")-linux-amd64.deb\" nix run .#localPathForDev --impure",