App: add category

This commit is contained in:
Thomas Farstrike
2025-05-07 15:51:43 +02:00
parent 407705a8f8
commit 9e57a1bc58
2 changed files with 5 additions and 3 deletions
@@ -19,7 +19,7 @@ action_label_uninstall = "Uninstall"
class App:
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version, entrypoint):
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version, entrypoint, category):
self.name = name
self.publisher = publisher
self.short_description = short_description
@@ -29,6 +29,7 @@ class App:
self.fullname = fullname
self.version = version
self.entrypoint = entrypoint
self.category = category
self.image = None
self.image_dsc = None
+3 -2
View File
@@ -237,8 +237,9 @@ import uio
import time
import ujson
class App:
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version, entrypoint):
def __init__(self, name, publisher, short_description, long_description, icon_url, download_url, fullname, version, entrypoint, category):
self.name = name
self.publisher = publisher
self.short_description = short_description
@@ -248,10 +249,10 @@ class App:
self.fullname = fullname
self.version = version
self.entrypoint = entrypoint
self.category = category
self.image = None
self.image_dsc = None
def is_launcher(app_name):
# Simple check, could be more elaborate by checking the MANIFEST.JSON for the app...
return "launcher" in app_name