From 969e46111661be6e4c2cc7ed948684c7150b8149 Mon Sep 17 00:00:00 2001 From: Shaunak Kishore Date: Fri, 29 Jun 2018 02:35:12 -0400 Subject: [PATCH] Improve Android build script --- scripts/build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build b/scripts/build index 2be5128c..8f3e6a40 100755 --- a/scripts/build +++ b/scripts/build @@ -20,9 +20,10 @@ pushd .build/android/project/cordova ./build --release cd ../build/outputs/apk -# Sign the output. Will prompt for passwords. -jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/.keystore project-armv7-release-unsigned.apk inkstone -jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/.keystore project-x86-release-unsigned.apk inkstone +# Sign the output, using our private ~/.keystore and ~/.keystore_password. +PASSWORD=`cat ~/.keystore_password` +jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/.keystore -storepass "$PASSWORD" project-armv7-release-unsigned.apk inkstone +jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/.keystore -storepass "$PASSWORD" project-x86-release-unsigned.apk inkstone $ZIPALIGN -f 4 project-armv7-release-unsigned.apk project-armv7-release.apk $ZIPALIGN -f 4 project-x86-release-unsigned.apk project-x86-release.apk