mirror of
https://github.com/appium/appium.git
synced 2026-02-10 11:59:45 -06:00
Merge pull request #2331 from shyamvala/patch-1
ApkSigning when using custome keystore fails
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user