Skip to content

download the installer, and let the wrapper apply it - #18

Merged
Digit4w merged 1 commit into
devfrom
feat/update-download
Sep 10, 2026
Merged

Digit4w merged 1 commit into
devfrom
feat/update-download

Conversation

@Digit4w

@Digit4w Digit4w commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Step B4: the download with progress, and the capability the Electron wrapper registers.

electron-updater is out, by the owner's decision. It needs code signing on macOS (Squirrel.Mac refuses an unsigned app), a latest*.yml that electron-builder only emits with publish configured, and a feed. None of the three exist here, and the macOS half is the one configuration cannot solve. The manual pattern does the same work without any of them.

The capability is registered, not detected. Both ends are forbidden from knowing — the client is host-agnostic, the server is environment-agnostic (brief, 3.4, both sides). So the wrapper declares what it can do: the same shape as WATCHPILE_HOST_CONTROL, except the capability is a FUNCTION, because what the wrapper knows how to do only exists inside Electron. In Docker nobody registers, the route says there is no way from here, and the screen shows the command instead of a button that pretends.

The three platforms end differently, so the sentence about how it ends travels with the capability rather than being a constant on a screen that cannot detect its environment:

Windows runs the NSIS installer and closes — it cannot replace a running executable
macOS opens the disk image; the last step is the person's, because replacing the .app alone is exactly where Gatekeeper comes in
Linux replaces the AppImage in place and relaunches, falling back to showing the file when it sits somewhere unwritable — failing silently would be worse than not having offered

Which file serves this machine is a pure rule, and the measured names decide it. An asset with no arch tag is the x64 build, since the matrix is macos-latest (arm64), ubuntu-latest and windows-latest (x64) — so outside x64 only a tagged asset counts, and Intel Macs and ARM Linux have no asset today. The screen says so rather than handing over a binary that will not run.

Progress is a BAR, and it is a registered exception. The 06/09 rule says number, never bar, and its own test is "is the denominator known AND does the numerator move one at a time?" — a download knows the denominator and moves by the thousand.

The install route answers 202 before applying: apply ends the process on most platforms, and awaiting it would hang the request until the connection dropped, which the screen would read as a failure of what actually worked.

Verified: the real feed carries browser_download_url for all three assets (142/141/125 MB); the download path is covered against an injected stream, including the no-asset refusal, the missing Content-Length, and the restart-while-running case.

🤖 Generated with Claude Code

The `electron-updater` is out by the owner's decision: it needs code
signing on macOS (Squirrel.Mac refuses an unsigned app), a `latest*.yml`
that `electron-builder` only emits with `publish` configured, and a
feed. None of the three exist here, and the macOS half is the one
configuration cannot solve. The manual pattern does the same work
without any of them — read the release, download, hand the file to the
system.

The capability is REGISTERED, not detected. Both ends are forbidden from
knowing: the client is host-agnostic and the server is
environment-agnostic (brief, 3.4, both sides). So the wrapper declares
what it can do, the same shape as `WATCHPILE_HOST_CONTROL` — except the
capability here is a FUNCTION, because what the wrapper knows how to do
only exists inside Electron. In Docker nobody registers, the route says
there is no way from here, and the screen shows the command instead of a
button that pretends.

The three platforms end DIFFERENTLY, so the sentence about how it ends
travels with the capability: Windows runs the installer and closes,
macOS opens the disk image and the last step is the person's (replacing
the .app alone is exactly where Gatekeeper comes in, and this app is
unsigned), Linux replaces the AppImage in place and relaunches — falling
back to showing the file when the AppImage sits somewhere unwritable,
because failing silently would be worse than not having offered.

Which file serves this machine is a pure rule, and the measured names
decide it. An asset with no arch tag is the x64 build, since the matrix
is macos-latest (arm64), ubuntu-latest and windows-latest (x64) — so
outside x64, only a tagged asset counts, and Intel Macs and ARM Linux
have no asset today. The screen says so rather than handing over a
binary that will not run.

Progress is a BAR, and it is a registered exception: the 06/09 rule says
number, never bar, and its own test is "is the denominator known AND
does the numerator move one at a time?" — a download knows the
denominator and moves by the thousand.

The install route answers 202 before applying, because `apply` ends the
process on most platforms and awaiting it would hang the request until
the connection dropped — which the screen would read as a failure of
what actually worked.
@Digit4w
Digit4w merged commit f8bb16c into dev Sep 10, 2026
2 checks passed
@Digit4w
Digit4w deleted the feat/update-download branch September 10, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant