1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00

fbt: dist improvements (#3186)

* fbt: MENUEXTERNAL apps now respect build configuration; fixed `fap_deploy`
* fbt, ufbt: better message for missing app manifests (shows real paths)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2023-11-02 17:28:39 +04:00
committed by GitHub
parent 0131eb3aa2
commit 0d94abf856
3 changed files with 20 additions and 10 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