From a77f81a6db9114df1ec2547a0fa42ac08e6a3f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 6 Nov 2015 14:17:09 +0100 Subject: run: add 's' option to sign and align apk --- run | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/run b/run index f1a17bc..da551e0 100755 --- a/run +++ b/run @@ -2,6 +2,10 @@ [ -d out ] && rm -fr out ARGS="desktop:run" +ALIAS=jeyzu +KEYSTORE="/home/jeyzu/etc/sync/jeyzu-key.keystore" +APK="./android/build/apk/android-release-unsigned.apk" +ZIPALIGN="/opt/android-sdk/build-tools/23.0.2/zipalign" function gradlew_do() { @@ -25,6 +29,15 @@ case "$1" in ARGS="android:assembleRelease$@" gradlew_do ;; + + "s") + shift; + ARGS="android:assembleRelease$@" + gradlew_do + jarsigner -verbose -tsa http://timestamp.digicert.com -sigalg SHA1withRSA -digestalg SHA1 -keystore $KEYSTORE $APK $ALIAS + jarsigner -verify $APK + $ZIPALIGN -v 4 $APK ./RustAndDust-signed-aligned.apk + ;; "t") shift; ARGS="core:test $@" -- cgit v1.1-2-g2b99