Add example apps

This commit is contained in:
Thomas Farstrike
2025-04-22 10:16:25 +02:00
parent 3003cfdb7f
commit dab9bc2718
7 changed files with 8 additions and 0 deletions
@@ -0,0 +1,2 @@
Manifest-Version: 1.0
Name: App1
+1
View File
@@ -0,0 +1 @@
print("running app1")
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Name: App2
+1
View File
@@ -0,0 +1 @@
print("app2 is running")
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+1
View File
@@ -65,6 +65,7 @@ def create_app_launcher():
base_path = f"{apps_dir}/{app_dir}"
icon_path = f"{base_path}/res/mipmap-mdpi/launcher_icon.png"
manifest_path = f"{base_path}/META-INF/MANIFEST.MF"
main_script = f"{base_path}/assets/main.py"
# Get app name from MANIFEST.MF
app_name = parse_manifest(manifest_path)
# Create a container for each app (icon + label)