Skip to content

Commit

Permalink
Improve Android build script
Browse files Browse the repository at this point in the history
  • Loading branch information
skishore committed Jun 29, 2018
1 parent 57393cf commit 969e461
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 969e461

Please sign in to comment.