Skip to content

Instantly share code, notes, and snippets.

@andrew-aladev
Created October 26, 2016 09:39
Show Gist options
  • Save andrew-aladev/3ef6481e3c9e94201e4571adf593b575 to your computer and use it in GitHub Desktop.
Save andrew-aladev/3ef6481e3c9e94201e4571adf593b575 to your computer and use it in GitHub Desktop.
Upload cordova project to nexus phones
#!/bin/sh
dir=$(pwd)
# cd ../ThaliTest
cordova build android --release --device
apk="./platforms/android/build/outputs/apk/android-release-unsigned.apk"
/usr/local/opt/android-sdk/build-tools/24.0.3/apksigner sign --ks ~/Documents/adb-release-key.jks --ks-pass="pass:123456" $apk
adb -s ENU7N15B26000497 install -r $apk &
adb -s ENU7N16425000118 install -r $apk &
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment