mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-23 01:18:12 -07:00
Fix default MENUEXTERNAL category
This commit is contained in:
@@ -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"""
|
||||
{{
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user