android/Makefile |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 1acf099466aba5b2d7d34f12866850e98c6588f7
Author: Jan Holesovsky <[email protected]>
Date:   Wed Jan 21 15:05:34 2015 +0100

    android: Add makefile rule to sign the resulting .apk.
    
    To sign, do:
    
    cd android
    make key=<your_key_name> sign
    
    Change-Id: I20214e034f997125ccfd122b97d18ae141130336

diff --git a/android/Makefile b/android/Makefile
index 0c6f47b..8a2bdbd 100644
--- a/android/Makefile
+++ b/android/Makefile
@@ -10,4 +10,15 @@ module_directory:=$(dir $(realpath $(firstword 
$(MAKEFILE_LIST))))
 
 include $(module_directory)/../solenv/gbuild/partial_build.mk
 
+.PHONY: sign
+
+SIGNED_APK := 
$(BUILDDIR)/android/experimental/LOAndroid3/bin/LibreOfficeViewer.apk
+
+sign: build
+       rm -f $(SIGNED_APK)
+       jarsigner --verbose -verbose -sigalg SHA1withRSA -digestalg SHA1 
-keystore ~/.keystore 
$(BUILDDIR)/android/experimental/LOAndroid3/bin/LibreOfficeViewer-release-unsigned.apk
 $(key)
+       $(ANDROID_SDK_HOME)/build-tools/*/zipalign -v 4 
$(BUILDDIR)/android/experimental/LOAndroid3/bin/LibreOfficeViewer-release-unsigned.apk
 $(SIGNED_APK)
+       @echo
+       @echo "Resulting signed apk: $(SIGNED_APK)"
+
 # vim: set noet sw=4 ts=4:
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to