Skip to content

Commit

Permalink
Change sign-apk to work with JDK 7
Browse files Browse the repository at this point in the history
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
Patrick Burke committed Aug 3, 2012
1 parent 7405629 commit 9dce23d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/leiningen/droid/build.clj
Expand Up @@ -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
Expand Down

0 comments on commit 9dce23d

Please sign in to comment.