summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-07 12:49:56 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-07 12:49:56 +0100
commit1ecc5abda207f70b0054415fa9abe9c5423c2206 (patch)
tree844b2c46f76bb0e591446132dc9484090f62e5e2
parentf925ab8c400bcc3d63bd3050ca539703737ce5f9 (diff)
downloadRustAndDust-1ecc5abda207f70b0054415fa9abe9c5423c2206.zip
RustAndDust-1ecc5abda207f70b0054415fa9abe9c5423c2206.tar.gz
run: clean first1.0.1
-rwxr-xr-xrun4
1 files changed, 3 insertions, 1 deletions
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;