Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

feat: Allow single zip bundle to contain multiple app SDK builds #556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/basedriver/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,13 @@ async function configureApp (app, supportedAppExtensions) {
if (archivePath !== app) {
await fs.rimraf(archivePath);
}
logger.info(`Will reuse previously cached application at '${fullPath}'`);
return verifyAppExtension(fullPath, supportedAppExtensions);
logger.info(`Will try to reuse previously cached application at '${fullPath}'`);
try {
return verifyAppExtension(fullPath, supportedAppExtensions);
} catch (err) {
logger.warn(`Cached applicattion '${fullPath}' does not have ${util.pluralize('extension', supportedAppExtensions.length, false)} '${supportedAppExtensions}', will look for app in archive '${archivePath}'`);
return archivePath;
}
}
logger.info(`The application at '${fullPath}' does not exist anymore ` +
`or its integrity has been damaged. Deleting it from the cache`);
Expand Down