mirror of
https://github.com/appium/appium.git
synced 2026-10-28 20:31:51 +08:00
Merge pull request #2366 from paymand/whitespace_in_app
Allow for whitespace in app path.
This commit is contained in:
@@ -180,7 +180,7 @@ ADB.prototype.processFromManifest = function (localApk, cb) {
|
||||
this.checkAaptPresent(function (err) {
|
||||
if (err) return cb(err);
|
||||
|
||||
var extractProcess = [this.binaries.aapt, 'dump', 'xmltree', localApk, 'AndroidManifest.xml'].join(' ');
|
||||
var extractProcess = [this.binaries.aapt, 'dump', 'xmltree', '"' + localApk + '"', 'AndroidManifest.xml'].join(' ');
|
||||
logger.debug("processFromManifest: " + extractProcess);
|
||||
exec(extractProcess, { maxBuffer: 524288 }, function (err, stdout, stderr) {
|
||||
if (err || stderr) {
|
||||
|
||||
@@ -1275,7 +1275,7 @@ IOS.prototype.removeApp = function (bundleId, cb) {
|
||||
IOS.prototype.installApp = function (unzippedAppPath, cb) {
|
||||
if (this.args.udid) {
|
||||
var installQuietFlag = this.args.quiet ? ' -q' : '';
|
||||
var installationCommand = fruitstrap + installQuietFlag + ' install --id ' + this.args.udid + ' --bundle ' + unzippedAppPath;
|
||||
var installationCommand = fruitstrap + installQuietFlag + ' install --id ' + this.args.udid + ' --bundle "' + unzippedAppPath + '"';
|
||||
deviceCommon.installApp(installationCommand, this.args.udid, unzippedAppPath, cb);
|
||||
} else {
|
||||
cb(new Error("You can not call installApp for the iOS simulator!"));
|
||||
|
||||
Reference in New Issue
Block a user