Check the app's icon: say when it can't be used, refuse it on publish

An icon.png that's missing, a link, over 1 MB or not a PNG used to
become the default silently. The installer and coreapp deploy now say
so (and note icons that aren't square or are small); coreapp publish
refuses an unusable or uncommitted one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 15:53:06 -07:00
co-authored by Claude Opus 5.5
parent 77427f2f16
commit e2d9381c35
6 changed files with 73 additions and 13 deletions
+11 -1
View File
@@ -248,7 +248,17 @@ The Core's own scripts trace secrets, so their output goes to
`title`, raise `version`, deploy: both files have the new title. After
`coreapp remove`, neither has it. An app installed from a repository
with no `docs` has `DOCS=<the repository>` in `service` and applist.
12. On a Core whose tier isn't enterprise, deploying a new app asks before
12. Icons: `python3 core/coreapps manifest .` prints `icon=` and
`icon_note=`: no `icon.png` "missing"; a link, a non-PNG, or one over
1 MB "bad" (with why); a PNG of 300x100 "ok" with a note to make it
square; 32x32 "ok" with a note that it's small; 256x256 and the
template's (128x128) "ok" with no note. Deploying with a non-PNG
`icon.png`: "Note: icon.png isn't a PNG, so the Core shows the default
icon instead." once, and the Core's `services/<name>/icon.png` is the
default. `coreapp publish` (in a git repository, `image` not
localhost/) refuses a non-PNG icon, and one in `.gitignore` ("isn't in
the repository"), before it looks at the registry.
13. On a Core whose tier isn't enterprise, deploying a new app asks before
it's recorded as an add-on; answering no deploys nothing.
### With a database