Merge pull request #2331 from shyamvala/patch-1

ApkSigning when using custome keystore fails
This commit is contained in:
Jonathan Lipps
2014-04-11 14:46:40 -07:00

View File

@@ -406,12 +406,13 @@ ADB.prototype.signWithCustomCert = function (apk, cb) {
return cb(new Error("Keystore doesn't exist. " + this.keystorePath));
}
var sign = [jarsigner, '"' + apk + '"',
var sign = [jarsigner,
'-sigalg MD5withRSA',
'-digestalg SHA1',
'-keystore "' + this.keystorePath + '"',
'-storepass "' + this.keystorePassword + '"',
'-keypass "' + this.keyPassword + '"',
'"' + apk + '"',
'"' + this.keyAlias + '"'].join(' ');
logger.debug("Unsigning apk with: " + unsign);
exec(unsign, { maxBuffer: 524288 }, function (err, stdout, stderr) {