Fix default MENUEXTERNAL category

This commit is contained in:
Willy-JL
2023-07-14 04:12:18 +02:00
parent 0443cedc7b
commit 49167866ea
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -393,6 +393,8 @@ class ApplicationsCGenerator:
app_path = "/ext/apps"
if app.fap_category:
app_path += f"/{app.fap_category}"
else:
app_path += "/assets"
app_path += f"/{app.appid}.fap"
return f"""
{{
+2 -1
View File
@@ -176,7 +176,8 @@ class AppBuilder:
deployable = False
app_artifacts.dist_entries.append((deployable, fal_path))
else:
fap_path = f"apps/{'assets' if self.app.apptype == FlipperAppType.MENUEXTERNAL else self.app.fap_category}/{app_artifacts.compact.name}"
category = 'assets' if self.app.apptype == FlipperAppType.MENUEXTERNAL and not self.app.fap_category else self.app.fap_category
fap_path = f"apps/{category}/{app_artifacts.compact.name}"
app_artifacts.dist_entries.append(
(self.app.is_default_deployable, fap_path)
)