diff --git a/apps/com.example.app1/META-INF/MANIFEST.MF b/apps/com.example.app1/META-INF/MANIFEST.MF new file mode 100644 index 00000000..69f7052d --- /dev/null +++ b/apps/com.example.app1/META-INF/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 +Name: App1 diff --git a/apps/com.example.app1/assets/main.py b/apps/com.example.app1/assets/main.py new file mode 100644 index 00000000..68605833 --- /dev/null +++ b/apps/com.example.app1/assets/main.py @@ -0,0 +1 @@ +print("running app1") diff --git a/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png new file mode 100644 index 00000000..f28f284c Binary files /dev/null and b/apps/com.example.app1/res/mipmap-mdpi/launcher_icon.png differ diff --git a/apps/com.example.app2/META-INF/MANIFEST.MF b/apps/com.example.app2/META-INF/MANIFEST.MF new file mode 100644 index 00000000..5691f7d0 --- /dev/null +++ b/apps/com.example.app2/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Name: App2 + diff --git a/apps/com.example.app2/assets/main.py b/apps/com.example.app2/assets/main.py new file mode 100644 index 00000000..97b77aab --- /dev/null +++ b/apps/com.example.app2/assets/main.py @@ -0,0 +1 @@ +print("app2 is running") diff --git a/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png b/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png new file mode 100644 index 00000000..220b3942 Binary files /dev/null and b/apps/com.example.app2/res/mipmap-mdpi/launcher_icon.png differ diff --git a/launcher.py b/launcher.py index 0068516c..4819aa7f 100644 --- a/launcher.py +++ b/launcher.py @@ -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)