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

Commit

Permalink
feat: Allow single zip bundle to contain multiple app SDK builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nextlevelbeard committed May 13, 2022
1 parent 025f69e commit 885057a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/basedriver/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,14 @@ 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 ${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

0 comments on commit 885057a

Please sign in to comment.