Files
quiver-launcher/e2e
CuddleBear92andClaude Opus 5.5 d38273b474 Cache: an opt-in download cache, to install again without downloading and to back up releases (#509)
* Cache: an opt-in download cache, to install again without downloading and to back up releases

A new Settings section, Cache, keeps the release files Quiver downloads, off
unless the player turns it on, in a folder of their choosing (by default
`cache` in the data folder, beside a portable copy). What it keeps:

- Installed only: each app's file as it installs; a newer version replaces
  the one before. Check now keeps the installed version of every app, and
  an app's menu has Cache now. Never downloads by itself otherwise.
- Selected titles: the newest release of the apps turned on from Manage on
  their pages or their menus, listed at the foot of the page with their
  pictures and the room they take, largest first.
- Every latest: the newest release of every app in the catalog.
- Hoarder: every release of every app, for archiving.

"Keep every system's files" keeps a release's builds for every system, not
only this computer's. Every latest and Hoarder warn of the storage and
bandwidth they take. The modes that download by themselves do it in the
background, one file at a time, a minute after the launcher starts and
every 6 hours, only what fits in the storage limit (5 GB to 1 TB, or
Unlimited), which rotates out the least recently used files but never one
of a version installed now. Clear orphans removes, when asked, the files of
apps no longer selected or installed.

An install takes its file from the cache when it's there, checked against
its SHA-256 first, so reinstalling or going back to a version works offline;
a cache that can't be read or written never fails an install. Files are kept
as `<app slug>/<version>/<file>` and never move, which an IPFS node could
later reference in place (Kubo's filestore); index.json knows each by its
SHA-256, keeps one copy of a file several apps share, and names a file whose
host gave it no extension for what's in it.

Downloads has a Download cache section: the file under way with its
progress and Stop, then what was kept or couldn't be, by app, version and
file. A fetch comes in as `.incoming/<app>/<version>/<file>`, so an
antivirus that flags it names the release; a file taken away as it
downloads shows as Removed by your antivirus, with Copy details for
reporting it. What a launcher closed mid-download leaves is cleared as it
starts.

Tests: cache.rs and install.rs (keeping, taking back checked, rotation,
Installed only, readable folders and moving older ones, a blocked fetch,
installing again from the cache with the host gone), cache.ts and
cache-fetch.ts, and settings.test.js's window for the list's ninth section.
The strings are translated in all 10 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8hjgDXWjcy1WDZkgKpLqs

* Cache: install from it offline, and keep each app's source code

- Offline, an install (or Reinstall) no longer stops at "Couldn't reach
  quiverlauncher.com" when the download cache has the app: the launcher still
  asks the site first, as ever, and only when there's no answer goes by the
  versions the cache keeps (the catalog's verified one first, else the
  newest), each file checked against its SHA-256 before it goes in. The
  index now keeps each file's architecture, to pick the right build offline.
- "Keep source code" keeps, for each app the cache keeps, the source code of
  the release it keeps (the installed one, or the newest), as its host
  archives the tag: GitHub, GitLab, Gitea/Forgejo or Bitbucket, named
  `<repository>-<tag>-source.zip` beside its builds. There's no checksum to
  check it against, so it's kept by its own SHA-256, the app's latest alone.
  Release feeds have no such archive.

Tests: cache.rs and install.rs (source kept, latest alone, no checksum only
for source, architecture), cache.ts and cache-fetch.ts, and e2e
cache-offline.test.js: offline, an app installs from the cache's file of it;
with nothing kept, the site can't be reached as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8hjgDXWjcy1WDZkgKpLqs

* Cache: each app's README kept, with its pictures, for its page while quiverlauncher.com can't be reached

An app's README comes from quiverlauncher.com (its copy of the project's,
`fetchedAt` when it last read it), else straight from its host; offline,
neither came, nor did its pictures, which load from the host. For the apps
the download cache keeps, it's now kept as `<cache>/<app>/readme.zip`, beside
its versions' folders: readme.json and the pictures it shows (images/), in
one zip written whole.

- Online, the page always shows the README as the site has it now, and keeps
  it in place of the copy before when it changed (its text and the addresses
  its paths resolve against, by SHA-256). The cache's runs keep it too.
- Only when the site can't be reached at all (not when it has none), the page
  shows the copy kept, its pictures from the zip, under a note that it's the
  copy saved on its date.
- It goes with the app's last file, and with Clear cache; a README cut off as
  it was written is cleared as the launcher starts. At most 40 pictures, 10 MB
  each and 50 MB in all.

packages/ui's Markdown takes `images` (pictures to show in place of those the
README links to) and exports readmeImages (the pictures it shows, resolved);
both optional, so the website's pages are as they were.

Tests: cache.rs (kept beside the versions, read back with its pictures, kept
again when it changes, gone with the app), markdown.test.tsx, cache.ts and
cache-fetch.ts, and e2e cache-offline.test.js: online the site's README,
kept; offline the copy, with its picture and the note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G8hjgDXWjcy1WDZkgKpLqs

* Put the translations back in the order lingui extract writes them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW13GV1ZRn9GXkNWTbiG

* Cache: say a download failed as it did, not that an antivirus removed it

A cache fetch said "blocked" (Removed by your antivirus) whenever its file wasn't
there after an error, which is also true of every failure before the file is
written: a 404, a refusal, no connection. Now only a file that was there and
went as it came is blocked; the rest say why, as an install does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW13GV1ZRn9GXkNWTbiG

* Cache: a newer release takes the place of an app's older one in Every latest and Selected titles

These modes never let an app's older versions go, and a fetch never makes room,
so once the cache was full each new release was left out as not fitting and the
cache kept old builds. Now the app's older files make room for its newest and go
once it's in, never a file another app or version shares, nor one installed now.
Hoarder still keeps every version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW13GV1ZRn9GXkNWTbiG

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-22 18:39:29 +11:00
..
2026-10-31 21:54:21 +11:00
2026-10-31 21:54:21 +11:00
2026-10-31 21:54:21 +11:00