From 1ecc5abda207f70b0054415fa9abe9c5423c2206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 7 Nov 2015 12:49:56 +0100 Subject: run: clean first --- run | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run b/run index da551e0..2fc6bbb 100755 --- a/run +++ b/run @@ -6,6 +6,7 @@ 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" +APK_OUT="./RustAndDust-signed-aligned.apk" function gradlew_do() { @@ -36,7 +37,8 @@ case "$1" in 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 + [ -f $APK_OUT ] && rm $APK_OUT + $ZIPALIGN -v 4 $APK $APK_OUT ;; "t") shift; -- cgit v1.1-2-g2b99