From a4d17b82710e3b0e963a549dd158baca030e42ce Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Thu, 31 Jul 2014 11:24:31 -0700 Subject: [PATCH] add .ipa to list of downloadable app options (fix #3268) --- lib/devices/device.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/devices/device.js b/lib/devices/device.js index d3d60d087c3..f17f6979ab4 100644 --- a/lib/devices/device.js +++ b/lib/devices/device.js @@ -117,7 +117,7 @@ Device.prototype.configureDownloadedApp = function (cb) { logger.error("Failed downloading app from appUrl " + appUrl); cb(err); } - } else if (ext === ".zip") { + } else if (ext === ".zip" || ext === ".ipa") { try { this.downloadAndUnzipApp(url.format(appUrl), function (zipErr, appPath) { if (zipErr) { @@ -135,7 +135,8 @@ Device.prototype.configureDownloadedApp = function (cb) { cb(err); } } else { - cb("App URL (" + this.args.app + ") didn't seem to point to a .zip or .apk file"); + cb("App URL (" + this.args.app + ") didn't seem to point to a .zip, " + + ".apk, or .ipa file"); } };