summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrun13
1 files changed, 13 insertions, 0 deletions
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 $@"