Fix Camera icon path

This commit is contained in:
Thomas Farstrike
2025-06-04 15:44:35 +02:00
parent a86ab00a3e
commit 4860437e6c
2 changed files with 5 additions and 3 deletions
@@ -3,9 +3,9 @@
"publisher": "MicroPythonOS",
"short_description": "Camera with QR decoding",
"long_description": "Camera for both internal camera's and webcams, that includes QR decoding.",
"icon_url": "https://apps.micropythonos.com/com.micropython.camera/icons/com.micropython.camera_0.0.3_64x64.png",
"download_url": "https://apps.micropythonos.com/com.micropython.camera/mpks/com.micropython.camera_0.0.3.mpk",
"fullname": "com.micropython.camera",
"icon_url": "https://apps.micropythonos.com/com.micropythonos.camera/icons/com.micropythonos.camera_0.0.3_64x64.png",
"download_url": "https://apps.micropythonos.com/com.micropythonos.camera/mpks/com.micropythonos.camera_0.0.3.mpk",
"fullname": "com.micropythonos.camera",
"version": "0.0.3",
"category": "camera",
"activities": [
@@ -442,10 +442,12 @@ class AppDetail(Activity):
def is_installed_by_path(dir_path):
try:
if os.stat(dir_path)[0] & 0x4000:
print(f"is_installed_by_path: {dir_path} found, checking manifest...")
manifest = f"{dir_path}/META-INF/MANIFEST.JSON"
if os.stat(manifest)[0] & 0x8000:
return True
except OSError:
print(f"is_installed_by_path got OSError for {dir_path}")
pass # Skip if directory or manifest doesn't exist
return False