Allow .ipa extension for desired capabilities param 'app'

This commit is contained in:
Aleksandr Komlev
2013-10-21 21:32:03 +04:00
parent a9ff48409a
commit 5ded674ae3
+4 -4
View File
@@ -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);
}
};