mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
Add sync_android.sh
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
"clean-install": "./scripts/install.sh",
|
||||
"build-web": "./scripts/build_web.sh",
|
||||
"build-sync-android": "./scripts/build_sync_android.sh",
|
||||
"sync-android": "./scripts/sync_android.sh",
|
||||
"migrate": "./scripts/migrate.sh",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
|
||||
11
scripts/sync_android.sh
Executable file
11
scripts/sync_android.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
export $(grep -E '^NEXT_PUBLIC_LOCAL_ANDROID=' .env)
|
||||
|
||||
npx cap sync android
|
||||
|
||||
# Then go to android studio, build, generate signed APK in android/app/release, adb install -r app-release.apk
|
||||
Reference in New Issue
Block a user