mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-14 12:13:04 +08:00
JDK 7 requires explicitly setting this. Should work in JDK 6 too.
"Caution: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK." Google Cache: http://webcache.googleusercontent.com/search?q=cache:OjyaP-Zoz-MJ:developer.android.com/tools/publishing/app-signing.html+&cd=1&hl=es&ct=clnk&client=safari (Patch by Mark Villacampa)
This commit is contained in:
@@ -335,7 +335,7 @@ EOS
|
||||
|
||||
App.info 'Sign', archive
|
||||
if App.config.development?
|
||||
sh "/usr/bin/jarsigner -storepass android -keystore \"#{keystore}\" \"#{archive}\" androiddebugkey"
|
||||
sh "/usr/bin/jarsigner -digestalg SHA1 -storepass android -keystore \"#{keystore}\" \"#{archive}\" androiddebugkey"
|
||||
else
|
||||
sh "/usr/bin/jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore \"#{keystore}\" \"#{archive}\" \"#{App.config.release_keystore_alias}\""
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user