abouttreesummaryrefslogcommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJules Aguillon2021-04-20 23:01:36 +0200
committerJules Aguillon2021-04-20 23:01:36 +0200
commit93c0ff5ff630a7b3eb6a0af3e30e66f2fa6a62ff (patch)
treecfa923ee2569b8e25e7cbf88dc5eb61ee651699a /Makefile
parentf466b1c12731082240e76a5e1940332d167c3bc0 (diff)
downloadunexpected-keyboard-93c0ff5ff630a7b3eb6a0af3e30e66f2fa6a62ff.tar.gz
unexpected-keyboard-93c0ff5ff630a7b3eb6a0af3e30e66f2fa6a62ff.zip
build: Explicitly set signing algorithms
Newer versions of jarsigner default to SHA256, which is unsupported for some versions of Android we support.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 66e251f..88e06c1 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,7 @@ _build/$(PACKAGE_NAME).debug.unsigned-apk: AAPT_PACKAGE_FLAGS+=--rename-manifest
# OPTS can be used to pass -storepass or -keypass options to jarsigner
_build/%.signed-apk: _build/%.unsigned-apk %-keystore.conf
eval `cat $(word 2,$^)` && \
- jarsigner -keystore "$$KEYSTORE" $$OPTS -signedjar "$@" "$<" "$$KEYNAME"
+ jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore "$$KEYSTORE" $$OPTS -signedjar "$@" "$<" "$$KEYNAME"
# Package