mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
FBT: Fix for Python 3.13 (#4187)
Co-authored-by: hedger <hedger@users.noreply.github.com>
This commit is contained in:
@@ -158,7 +158,7 @@ class AppManager:
|
|||||||
f"App {kw.get('appid')} cannot have fal_embedded set"
|
f"App {kw.get('appid')} cannot have fal_embedded set"
|
||||||
)
|
)
|
||||||
|
|
||||||
if apptype in AppBuildset.dist_app_types:
|
if apptype in AppBuildset.DIST_APP_TYPES:
|
||||||
# For distributing .fap's resources, there's "fap_file_assets"
|
# For distributing .fap's resources, there's "fap_file_assets"
|
||||||
for app_property in ("resources",):
|
for app_property in ("resources",):
|
||||||
if kw.get(app_property):
|
if kw.get(app_property):
|
||||||
@@ -258,13 +258,11 @@ class AppBuildset:
|
|||||||
FlipperAppType.DEBUG: True,
|
FlipperAppType.DEBUG: True,
|
||||||
FlipperAppType.MENUEXTERNAL: False,
|
FlipperAppType.MENUEXTERNAL: False,
|
||||||
}
|
}
|
||||||
|
DIST_APP_TYPES = list(
|
||||||
@classmethod
|
# Applications that are installed on SD card
|
||||||
@property
|
entry[0]
|
||||||
def dist_app_types(cls):
|
for entry in EXTERNAL_APP_TYPES_MAP.items()
|
||||||
"""Applications that are installed on SD card"""
|
if entry[1]
|
||||||
return list(
|
|
||||||
entry[0] for entry in cls.EXTERNAL_APP_TYPES_MAP.items() if entry[1]
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user