Skip to content

Commit

Permalink
Allow .ipa extension for desired capabilities param 'app'
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomrobotics committed Oct 21, 2013
1 parent a9ff484 commit 5ded674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/appium.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
};

Expand Down

0 comments on commit 5ded674

Please sign in to comment.