ci/woodpecker/manual/woodpecker Pipeline was successful
A store no longer needs a repository of its own. The engine's built-in defaults already cover the host-to-asset mapping, the install modes, the platforms and the behaviour; what they cannot know is identity — a slug, a name and a catalog URL — and that is exactly what a registry record carries. So `storeRepositoryUrl` is optional: a record with a name and a catalog is a complete store, the id falls back from the repository name to the catalog host (`teletypegames.org` becomes `teletypegames`) to the display name, and the client writes a three-section config. Given a repository it still reads it, and that file stays the authority on how the store behaves; a repository without a config.json is treated as no repository at all. Measured end to end against a local registry serving one record with a null repository: the engine and the core downloaded, engine 1.1.0 accepted the written config, it listed the same ten titles the configured store does, and a hosted title synced into a sandbox with its menu entry written. The "Install all" button is gone, and with it the string it used. Titles are installed one at a time from their own cards. No footer. The window carried a bar at the bottom at all times — a toggle and a line of absolute paths — for something most sessions never need. The log is still there, folder buttons included, behind a quiet switch at the bottom of the side menu; it takes no room until it is opened, and an arriving line does not open it, because the store logs on every refresh and a window that unfolds panels by itself is worse than one that keeps quiet. Three faults that every automated count had passed, found by photographing the setup screen: the store badge rendered as an empty pill with no store open; the gate's picker showed as an empty dropdown stub, because an explicit `display` beats the browser's own `[hidden]` rule; and the gate went up while the empty-catalog line stayed on screen underneath it. The last was a design fault — whether the gate is up was a call on a view rather than state, so the two could disagree. The setup screen is now a field in the state store, and that one field decides which of the gate and the grid is drawn. The window test's gate assertion was wrong too: it demanded a store picker, which only appears when the registry offers more than one store, so one store — the ordinary case — failed it. CI builds the packages this machine cannot. `.woodpecker.yaml` runs the checks on every push and, on a tag or by hand, builds the Linux packages in `electronuserland/builder:22` and the Windows ones in `:22-wine`, then attaches them to the release with scripts/ci-upload.sh. The pipeline lives here rather than in the update server's `/build/config` extension, which serves game-platform pipelines publishing into the site's catalog — a different product with a different target. macOS stays a local build: Apple's toolchain and its signing exist only on a Mac. Both build steps verify what they produced, because a half-finished Wine build leaves a 162 KB stub named like the real installer and `ls` is happy with it. The Linux step was rehearsed locally in the same image (AppImage 128 MB, deb 100 MB); the Wine step cannot be rehearsed on Apple Silicon, where 16 KB host pages break Wine's 4 KB assumption, so the runner is where it is proven. The size check was tested against both outcomes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
336 lines
9.7 KiB
CSS
336 lines
9.7 KiB
CSS
/* One dark theme, no assets: the box art is the only image the app loads. */
|
|
:root {
|
|
--bg: #11151c;
|
|
--panel: #182029;
|
|
--panel-2: #1e2732;
|
|
--line: #2a3440;
|
|
--ink: #e8eef5;
|
|
--ink-dim: #93a4b8;
|
|
--accent: #37b98a;
|
|
--accent-ink: #05130d;
|
|
--warn: #e0a44a;
|
|
--radius: 12px;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
/* An explicit `display` beats the browser's own [hidden] rule, and most of the
|
|
regions here have one — the gate's store picker showed as an empty stub because
|
|
of exactly that. This makes `hidden` mean hidden everywhere. */
|
|
[hidden] { display: none !important; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* --- shell: the side menu and everything else --------------------------- */
|
|
.shell {
|
|
flex: 1;
|
|
display: flex;
|
|
min-height: 0;
|
|
overflow: hidden; /* so the collapsed menu is clipped rather than scrolled to */
|
|
}
|
|
.content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.side {
|
|
--side-width: 244px;
|
|
width: var(--side-width);
|
|
flex: none;
|
|
background: var(--panel);
|
|
border-right: 1px solid var(--line);
|
|
/* The menu itself does not scroll: the category list does. Letting the whole
|
|
column scroll made the bottom block — pinned there with margin-top: auto —
|
|
sit on top of the overflowing categories. */
|
|
overflow: hidden;
|
|
padding: 14px 12px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
transition: margin-left .16s ease-out;
|
|
}
|
|
body.nav-closed .side { margin-left: calc(-1 * var(--side-width)); }
|
|
|
|
.side-block { display: flex; flex-direction: column; gap: 6px; flex: none; }
|
|
.side-cats { flex: 1; min-height: 0; }
|
|
.side-foot {
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--line);
|
|
gap: 8px;
|
|
}
|
|
.side-head {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-dim);
|
|
margin: 0 0 2px 4px;
|
|
}
|
|
.btn-wide { width: 100%; text-align: left; }
|
|
|
|
.nav-toggle {
|
|
font: inherit;
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
color: var(--ink-dim);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
}
|
|
.nav-toggle:hover { color: var(--ink); border-color: #3a4757; }
|
|
|
|
/* Store switcher: one row per store on this machine, the open one marked. */
|
|
.store-list { display: flex; flex-direction: column; gap: 4px; }
|
|
.store-row {
|
|
font: inherit;
|
|
text-align: left;
|
|
color: var(--ink);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 8px;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
.store-row:hover:not(:disabled) { background: var(--panel-2); }
|
|
.store-row.is-active {
|
|
background: var(--panel-2);
|
|
border-color: #2f5a49;
|
|
}
|
|
.store-row .store-row-name { font-weight: 600; }
|
|
.store-row .store-row-id {
|
|
font-size: 11px;
|
|
color: var(--ink-dim);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.store-row:disabled { opacity: .55; cursor: default; }
|
|
|
|
/* Categories: what the catalog is filtered down to. */
|
|
.cats { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
|
|
.cat {
|
|
font: inherit;
|
|
text-align: left;
|
|
color: var(--ink-dim);
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
.cat:hover { background: var(--panel-2); color: var(--ink); }
|
|
.cat.is-active { background: var(--panel-2); color: var(--ink); font-weight: 600; }
|
|
.cat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.cat-count { margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
.cat-group {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
letter-spacing: .07em;
|
|
text-transform: uppercase;
|
|
color: #6b7d92;
|
|
padding: 8px 10px 2px;
|
|
}
|
|
|
|
.side-lang { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
|
|
.side-lang .select { margin-left: auto; }
|
|
|
|
/* --- top bar ------------------------------------------------------------ */
|
|
.bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 18px;
|
|
background: var(--panel);
|
|
border-bottom: 1px solid var(--line);
|
|
flex: none;
|
|
}
|
|
.bar-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; margin-right: auto; }
|
|
.logo { color: var(--accent); font-size: 18px; }
|
|
.store-id {
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
color: var(--ink-dim);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
padding: 1px 8px;
|
|
}
|
|
.bar-actions { display: flex; align-items: center; gap: 8px; }
|
|
.progress { color: var(--ink-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
|
|
/* --- controls ----------------------------------------------------------- */
|
|
.btn {
|
|
font: inherit;
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 7px 14px;
|
|
cursor: pointer;
|
|
transition: background .15s, border-color .15s, transform .05s;
|
|
}
|
|
.btn:hover:not(:disabled) { background: #26313e; border-color: #3a4757; }
|
|
.btn:active:not(:disabled) { transform: scale(.97); }
|
|
.btn:disabled { opacity: .45; cursor: default; }
|
|
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
|
|
.btn-primary:hover:not(:disabled) { background: #45cd9b; }
|
|
.btn-ghost { background: transparent; color: var(--ink-dim); }
|
|
.btn-tiny { padding: 3px 9px; font-size: 12px; font-weight: 500; }
|
|
.select {
|
|
font: inherit;
|
|
color: var(--ink);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 6px 8px;
|
|
}
|
|
.link { color: var(--accent); cursor: pointer; text-decoration: underline; }
|
|
|
|
/* --- gate (no python, or no store yet) ---------------------------------- */
|
|
.gate {
|
|
margin: auto;
|
|
max-width: 520px;
|
|
padding: 28px;
|
|
text-align: center;
|
|
}
|
|
.gate h1 { font-size: 20px; margin: 0 0 10px; }
|
|
.gate p { color: var(--ink-dim); white-space: pre-line; margin: 0 0 20px; word-break: break-all; }
|
|
.gate-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
|
|
.gate-choice { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 13px; }
|
|
|
|
/* --- the grid ----------------------------------------------------------- */
|
|
.grid {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: grid;
|
|
/* Narrower than it was: the side menu takes 244px off the window, and at 260px
|
|
a 1040px window had room for only two columns. */
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
gap: 14px;
|
|
padding: 18px;
|
|
/* Content-sized rows, spelled out. Left to `auto` the implicit rows split the
|
|
grid's height evenly — every card came out 94px tall with its box art
|
|
collapsed to nothing and its buttons clipped away, which is how the grid
|
|
looked before this was measured. */
|
|
grid-auto-rows: max-content;
|
|
align-content: start;
|
|
}
|
|
.empty { margin: auto; color: var(--ink-dim); }
|
|
.gate { overflow-y: auto; }
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.card.is-installed { border-color: #2f5a49; }
|
|
|
|
.art {
|
|
/* One height for every card, art or not, so the titles and the buttons line up
|
|
across a row. The images are cropped anyway (object-fit: cover). */
|
|
height: 148px;
|
|
flex: none;
|
|
background: #0d1117;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
.art img { width: 100%; height: 100%; object-fit: cover; }
|
|
.art-glyph { font-size: 44px; font-weight: 700; color: #263341; }
|
|
|
|
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
|
|
.body h2 { font-size: 15px; margin: 0; }
|
|
.meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
.badge {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
border-radius: 999px;
|
|
padding: 2px 8px;
|
|
border: 1px solid var(--line);
|
|
color: var(--ink-dim);
|
|
}
|
|
.badge-app { color: var(--accent); border-color: #2f5a49; }
|
|
.badge-web { color: var(--warn); border-color: #5a4a2f; }
|
|
.version { font-size: 12px; color: var(--ink-dim); margin-left: auto; }
|
|
.desc {
|
|
margin: 0;
|
|
font-size: 12.5px;
|
|
color: var(--ink-dim);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
.actions { display: flex; gap: 8px; margin-top: auto; }
|
|
|
|
/* --- log ----------------------------------------------------------------
|
|
No permanent footer: the panel is in the flow only while it is open, and the
|
|
switch for it sits in the side menu with everything else that is not a title. */
|
|
.log-panel {
|
|
flex: none;
|
|
background: var(--panel);
|
|
border-top: 1px solid var(--line);
|
|
padding: 8px 18px 10px;
|
|
}
|
|
.side-quiet {
|
|
font: inherit;
|
|
font-size: 12px;
|
|
color: var(--ink-dim);
|
|
background: none;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
padding: 4px 6px;
|
|
margin-left: -6px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
.side-quiet:hover { color: var(--ink); background: var(--panel-2); }
|
|
.side-quiet.is-active { color: var(--accent); }
|
|
.log-lines {
|
|
max-height: 150px;
|
|
overflow-y: auto;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 11.5px;
|
|
color: var(--ink-dim);
|
|
background: #0d1117;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.log-line { white-space: pre-wrap; word-break: break-all; }
|
|
.log-paths { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
.paths-line {
|
|
font-size: 11.5px;
|
|
color: var(--ink-dim);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
word-break: break-all;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|