chore: Tune the target folder name for an extracted app
MODIFY
lib/basedriver/helpers.js
lib/basedriver/helpers.js
@@ -337,7 +337,7 @@ async function unzipApp (zipPath, dstRoot, supportedAppExtensions) {
const matchedBundle = _.first(allBundleItems);
logger.debug(`Matched ${util.pluralize('item', allBundleItems.length, true)} in the extracted archive. ` +
`Assuming '${matchedBundle}' is the correct bundle`);
- const dstPath = path.resolve(dstRoot, matchedBundle);
+ const dstPath = path.resolve(dstRoot, path.basename(matchedBundle));
await fs.mv(path.resolve(tmpRoot, matchedBundle), dstPath, {mkdirp: true});
return dstPath;
} finally {

chore: Tune the target folder name for an extracted app