Android: add support scripts

This commit is contained in:
Pieter Vander Vennet 2025-01-22 18:19:48 +01:00
parent e9c828a2c5
commit 2bea57f6a4
3 changed files with 8 additions and 4 deletions

View file

@ -149,8 +149,11 @@
"delete:database:old": "vite-node scripts/osm2pgsql/deleteOldDbs.ts",
"upload:panoramax": "vite-node scripts/ImgurToPanoramax.ts # && josm imgur_to_panoramax.osc",
"#": "Android development"
"#": "Android development",
"android:prepare": "./scripts/prepareAndroid.sh",
"android:build": "./scripts/buildAndroid.sh",
"android:upload": "scp ./android/app/build/outputs/apk/release/app-release-unsigned.apk hetzner:apk/mapcomplete-latest.apk && scp ./android/app/build/outputs/apk/release/app-release-unsigned.apk hetzner:app/mapcomplete-latest.apk\n",
"android:uninstall": "adb shell pm uninstall org.mapcomplete"
},
"keywords": [
"OpenStreetMap",

View file

@ -9,4 +9,3 @@ cd android
# Output location of the apk:
# MapComplete/android/app/build/outputs/apk/release/app-release-unsigned.apk
scp ./app/build/outputs/apk/release/app-release-unsigned.apk hetzner:apk/mapcomplete-latest.apk

View file

@ -59,5 +59,7 @@ nvm use
npx capacitor-assets generate
npx cap sync
cd android
echo "All done! Don't forget to click 'gradle sync files' in Android Studio"
tput bel
tput bel