diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-06 14:17:09 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-06 14:17:09 +0100 |
commit | a77f81a6db9114df1ec2547a0fa42ac08e6a3f1c (patch) | |
tree | 2f017f64f2f3375a631bb2be7492b4e95a853415 /run | |
parent | d1a66f989f2109c1f6f4c67feec8f823eb825b7a (diff) | |
download | RustAndDust-a77f81a6db9114df1ec2547a0fa42ac08e6a3f1c.zip RustAndDust-a77f81a6db9114df1ec2547a0fa42ac08e6a3f1c.tar.gz |
run: add 's' option to sign and align apk
Diffstat (limited to 'run')
-rwxr-xr-x | run | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 $@" |