Browse files

Change sign-apk to work with JDK 7

The -sigalg and -digestalg arguments for jarsigner need to be explicitly
set to MD5withRSA and SHA1 respectively in order for signing to work
when using JDK 7.

See
http://developer.android.com/tools/publishing/app-signing.html#signapp
  • Loading branch information...
1 parent 7405629 commit 9dce23d1db4ddd71427f710199de4d279ae53aad Patrick Burke committed Aug 3, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/leiningen/droid/build.clj
View
2 src/leiningen/droid/build.clj
@@ -163,6 +163,8 @@
(create-debug-keystore keystore-path))
(ensure-paths unaligned-path keystore-path)
(sh "jarsigner"
+ "-sigalg" "MD5withRSA"
+ "-digestalg" "SHA1"
"-keystore" keystore-path
"-storepass" storepass
"-keypass" keypass

0 comments on commit 9dce23d

Please sign in to comment.