Skip to content

feat: it says when there is a newer version, and brings its file down - #17

Merged
FrancescBagur merged 1 commit into
masterfrom
feat/updates
Nov 13, 2026
Merged

FrancescBagur merged 1 commit into
masterfrom
feat/updates

Conversation

@FrancescBagur

Copy link
Copy Markdown
Owner

What this changes

The window says when there is a newer version than the one running, and will bring the file for this system down, checked. It does not install it.

What was decided

  • A word, not a dialog. A newer version is a word at the end of the tab strip, beside the gear. Nothing is brought down until it is pressed and nothing ever interrupts a repository to say so. It looks a little after the window opens and once a day, off the thread that paints; a look that fails says nothing unless somebody asked for it from the preferences.
  • It stops before installing. Each system installs a different way, one wants a password, another will not let a running program be written over, and none of the files is signed. A program that replaced itself with something it could not vouch for would be worse than one that leaves the last step to whoever is sitting there.
  • Looking costs no dependency. A version is a tag, and listing a repository's tags is what git ls-remote does and what this program could always do: no API, no account, no limit, nothing sent that a clone does not send.
  • A tag is not a release. The files take a while to be built from a tag, and a tag pushed by mistake never gets any -- the workflow refuses one that disagrees with the version in the source. So a newer tag is mentioned only once the SHA256SUMS published with its files can be read, and one without them is passed over for the one before. Without this, pushing a tag would have put a download that is not there in front of everybody who has the program.
  • curl, not an HTTPS library. Linux nearly always has it and macOS and Windows ship it; the alternative was forty crates for one request a month. HTTPS only, at the first address and at every one it is sent on to. With no curl it says so and the release's page is a click away.
  • The SHA-256 is written out, sixty lines, held by a test to the published answers and to the lengths around a block where a mistake in the padding would be. The check says the file arrived as it was built. It does not say who built it, and SECURITY.md says so.
  • The .deb to whoever took the .deb, the folder to whoever did not, and nothing where the release builds nothing. The file names are written here and in the release workflow; a test reads the workflow and fails if they part.
  • A beta is offered to whoever asks for betas, and to whoever is running one.
  • It is a connection nobody asked for, to github.com, on by default. It is in SECURITY.md beside the other things the window does by itself, it says so under its own switch, and the switch turns it off.
  • Opening an address used xdg-open, which only Linux has. It goes through the program each system has for it now -- open, rundll32 url.dll,FileProtocolHandler -- here and for the links that were already there. Only Linux's has been run.

Checked

  • cargo test passes here, not just in CI -- 409, ten of them new
  • It was run -- on Linux, against the releases there are, by a debug build told it was an older version (GITRUST_PRETEND_VERSION, which a release build does not read): the look, the file brought down and checked, the same sum from sha256sum, a file already there kept, a tag with no release behind it passed over, the word, its menu, Look now, Not this version. The buttons that hand the file, the folder or the page to the desktop were not pressed, and nothing of it has been seen on macOS or Windows
  • Anything that writes (index, stash, branches, remote) or touches the graph layout carries a test -- none of that is touched; the settings lines have theirs
  • Commits are signed off (git commit -s) and read as sentences

🤖 Generated with Claude Code

A program installed once that never says another word is one still on
its first beta a year later. So it looks -- a little after the window
opens and once a day -- and when there is something newer a word
appears at the end of the tab strip, beside the gear. Nothing else
happens until the word is pressed: no dialog, nothing brought down.

Pressed, it offers the file for this system, the .deb to whoever took
the .deb and the folder to whoever did not, puts it where downloads go
and checks it against the SHA256SUMS published beside it. It has
another name until it has been checked. A version can be told not to
be mentioned again, the whole thing can be turned off, and a beta is
offered to whoever asks for betas and to whoever is running one.

It does not install anything. Each system installs a different way,
one wants a password, another will not let a running program be
written over, and none of the files is signed: a program that replaced
itself with something it could not vouch for would be worse than one
that leaves the last step to whoever is sitting there.

Looking costs no dependency. A version is a tag, and listing a
repository's tags is the one thing this program could always do -- no
API, no account, nothing sent that a clone does not send. But a tag is
not a release: the files take a while to be built from it, and a tag
pushed by mistake never gets any, so a newer tag is mentioned only once
the sums published with its files can be read, and one without them is
passed over for the one before.

Bringing the file down is curl, over HTTPS and nothing else, instead of
a library for it and the forty crates behind one for a request a month.
With no curl it says so and the release's page is a click away. The
SHA-256 is written out, sixty lines held to the published answers.

It is a connection to github.com that nobody asked for, and SECURITY.md
now says so beside the other things the window does by itself.

Opening an address went through xdg-open, which only Linux has. It
goes through the program each system has for it now, here and for the
links that were already there.

Tried on Linux against the releases there are, by a build told it was
older than it is: the look, the file, the check against sha256sum's
own answer, a tag with no release behind it, the word, its menu, the
preferences. The buttons that hand the file to the desktop were not
pressed, and nothing of it has been seen on macOS or Windows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Francesc <francesc.bagur@coffeesoftware.io>
@FrancescBagur
FrancescBagur merged commit 2913364 into master Nov 13, 2026
3 checks passed
@FrancescBagur
FrancescBagur deleted the feat/updates branch November 13, 2026 07:36
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