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
+5 -1
View File
@@ -20,7 +20,7 @@ An app is a repository with:
| `coreapp.toml` | What the Core needs to know (below) |
| `Dockerfile` | Builds the app's image |
| the app's code | Whatever the Dockerfile uses |
| `icon.png` | Its icon in the Core's dashboard (PNG, up to 1 MB; optional) |
| `icon.png` | Its icon in the Core's dashboard: a square PNG, 256x256 is good, up to 1 MB (shown at 40x40). Without one, or if it isn't a PNG, the Core shows a default icon |
That's all. The app has **no scripts and no compose file**: a trusted
installer on the Core (`coreapps`) reads `coreapp.toml` and makes the rest:
@@ -247,6 +247,10 @@ and make the Dockerfile fit the Core:
(`adduser -S -u 1000 -h /data app` on Alpine.) Many upstream images
already have a user; use it.
- **Give it its own `icon.png`**: the project's logo, square, as a PNG
(convert an SVG or ICO; 256x256 is good). The template's is a
placeholder. `coreapp deploy` and `publish` say if it's unusable, not
square or too small; `publish` refuses one the Core can't use.
- **Answer on `health`** once ready (a dedicated health endpoint, or `/` if
it returns 2xx-4xx without signing in).
- **One container.** If the upstream project ships a compose file with