summaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-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;