manifest icons: explicit any/maskable entries (no dual-purpose value — Firefox Android quirk), launcher sizes first

This commit is contained in:
Nathan Schneider committed 2026-10-20 22:21:00 -06:00
1 parent 0560c6e26b
commit c47c311873
1 file changed
+11 -3
+11 -3
View File
@@ -51,9 +51,17 @@ try:
mf["name"] = "Inference Co\u2011op" mf["name"] = "Inference Co\u2011op"
mf["short_name"] = "Inference" mf["short_name"] = "Inference"
mf["description"] = "Member-governed AI inference — private and renewable model choices." mf["description"] = "Member-governed AI inference — private and renewable model choices."
for icon in mf.get("icons", []): # Deterministic icon list: explicit any/maskable entries (no dual-purpose
if icon.get("sizes") == "512x512": # values — some Firefox Android versions mishandle "any maskable"), and
icon["purpose"] = "any maskable" # the launcher-suitable sizes first.
mf["icons"] = [
{"src": "assets/icon-192x192.png", "sizes": "192x192", "type": "image/png", "purpose": "any"},
{"src": "assets/maskable-icon.png", "sizes": "512x512", "type": "image/png", "purpose": "any"},
{"src": "assets/maskable-icon.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable"},
{"src": "assets/apple-touch-icon-180x180.png", "sizes": "180x180", "type": "image/png"},
{"src": "assets/favicon-32x32.png", "sizes": "32x32", "type": "image/png"},
{"src": "assets/favicon-16x16.png", "sizes": "16x16", "type": "image/png"},
]
open(MPATH, "w", encoding="utf-8").write(_json.dumps(mf, indent=2)) open(MPATH, "w", encoding="utf-8").write(_json.dumps(mf, indent=2))
print("manifest: co-op identity set") print("manifest: co-op identity set")
except OSError: except OSError: