Merge branch 'ofw_dev' into nfcrefactoring

This commit is contained in:
MX
2023-11-08 15:14:30 +04:00
6 changed files with 49 additions and 20 deletions

View File

@@ -21,8 +21,13 @@ def LoadAppManifest(env, entry):
APP_MANIFEST_NAME = "application.fam"
manifest_glob = entry.glob(APP_MANIFEST_NAME)
if len(manifest_glob) == 0:
try:
disk_node = next(filter(lambda d: d.exists(), entry.get_all_rdirs()))
except Exception:
disk_node = entry
raise FlipperManifestException(
f"Folder {entry}: manifest {APP_MANIFEST_NAME} is missing"
f"App folder '{disk_node.abspath}': missing manifest ({APP_MANIFEST_NAME})"
)
app_manifest_file_path = manifest_glob[0].rfile().abspath