build: Explicitly set signing algorithms

Newer versions of jarsigner default to SHA256, which is unsupported for
some versions of Android we support.
This commit is contained in:
Jules Aguillon 2021-04-20 23:01:36 +02:00
parent f466b1c127
commit 93c0ff5ff6

View File

@ -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