mirror of
https://github.com/appium/appium.git
synced 2026-04-28 22:40:34 -05:00
Allow .ipa extension for desired capabilities param 'app'
This commit is contained in:
+4
-4
@@ -308,8 +308,8 @@ Appium.prototype.configureLocalApp = function(appPath, origin, cb) {
|
||||
}
|
||||
cb();
|
||||
});
|
||||
} else if (ext === ".zip") {
|
||||
logger.info("Using local zip from " + origin + ": " + appPath);
|
||||
} else if (ext === ".zip" || ext === ".ipa") {
|
||||
logger.info("Using local zip or ipa from " + origin + ": " + appPath);
|
||||
this.unzipLocalApp(appPath, function(zipErr, newAppPath) {
|
||||
if (zipErr) return cb(zipErr);
|
||||
this.args.app = newAppPath;
|
||||
@@ -318,8 +318,8 @@ Appium.prototype.configureLocalApp = function(appPath, origin, cb) {
|
||||
}.bind(this));
|
||||
} else {
|
||||
var dExt = this.getAppExt();
|
||||
logger.error("Using local app, but didn't end in .zip or " + dExt);
|
||||
cb("Your app didn't end in .zip or " + dExt);
|
||||
logger.error("Using local app, but didn't end in .zip, .ipa or " + dExt);
|
||||
cb("Your app didn't end in .zip, .ipa or " + dExt);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user