Automatic fap category for extmainapp

This commit is contained in:
Willy-JL
2023-05-21 16:36:04 +01:00
parent 5dec3ed290
commit e7b203d3d7
2 changed files with 1 additions and 2 deletions

View File

@@ -12,6 +12,5 @@ App(
icon="A_Xtreme_14", icon="A_Xtreme_14",
order=90, order=90,
fap_libs=["assets"], fap_libs=["assets"],
fap_category=".Main",
fap_icon="xtreme_app_10px.png", fap_icon="xtreme_app_10px.png",
) )

View File

@@ -176,7 +176,7 @@ class AppBuilder:
deployable = False deployable = False
app_artifacts.dist_entries.append((deployable, fal_path)) app_artifacts.dist_entries.append((deployable, fal_path))
else: else:
fap_path = f"apps/{self.app.fap_category}/{app_artifacts.compact.name}" fap_path = f"apps/{'.Main' if self.app.apptype == FlipperAppType.EXTMAINAPP else self.app.fap_category}/{app_artifacts.compact.name}"
app_artifacts.dist_entries.append( app_artifacts.dist_entries.append(
(self.app.is_default_deployable, fap_path) (self.app.is_default_deployable, fap_path)
) )