[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - android/Makefile

Jan Holesovsky kendy at collabora.com
Wed Jan 21 06:08:44 PST 2015


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

New commits:
commit 1acf099466aba5b2d7d34f12866850e98c6588f7
Author: Jan Holesovsky <kendy at collabora.com>
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:


More information about the Libreoffice-commits mailing list