Readwyn 0.1.0

Update Readwyn on Linux without a package repository

A system update won't touch Readwyn, because there's no apt or dnf repository for it. The Linux app looks at readwyn.com itself, at most once a day (the Mac app doesn't check at all). When there's a new version, a card in the sidebar says so, and you install the new package over the old one. Nothing in your libraries or settings changes.

The card

It sits above your e-reader's card and reads “Readwyn 0.2.0 is out”, with “You have 0.1.0. Your libraries and settings stay.” underneath.

The Readwyn library on Linux; in the sidebar, above the Kobo Clara 2E card, a card says Readwyn 0.2.0 is out, You have 0.1.0. Your libraries and settings stay, with the buttons Download and Later
The card for a new version

“Download” opens the download page in your browser. “Later” hides the card until the next version comes out.

Installing the new version

Download the new package for your system and processor, and install it over the old one:

SystemHow
Ubuntu and Debiansudo apt install ./readwyn_<version>-1_amd64.deb
FedoraDouble-click the .rpm file, or sudo dnf install ./readwyn-<version>-1.x86_64.rpm

On arm64, use the arm64 file name. Ubuntu's App Center won't put a new version over an installed one (it shows “Installed” instead), which is why the table gives the apt command: it replaces the old version.

In testing, a 0.2.0 package went on over 0.1.0, and the settings, the list of libraries and the books came through unchanged.

What the check sends

The app fetches one small file, https://readwyn.com/linux/latest.json, over HTTPS with a plain GET. The only headers it sets itself are User-Agent: Readwyn/<version> and Accept: application/json. There's no query string, body or cookie: no library data goes with the request, and nothing that identifies your computer or you.

The file gives the latest version of the app and of the server, and the page to download each from. Versions are compared as numbers, not as text, so 0.10.0 counts as newer than 0.9.0.

How often

Between checks, the app answers from the last copy it read. If readwyn.com can't be reached, it tries again an hour later; if the site answers with an error, the last copy stands for another day.

A server on another machine

If the app is connected to a Linux server that runs an older version (ryn-server on a NAS, say), the same card names the server instead: “Readwyn server 0.2.0 is out”, then “Sid’s NAS has 0.1.0. Install the new package there; its libraries stay.” Install the new package on that machine the same way you installed the first one (the file names are in Run a headless ebook server on Linux). The package restarts the running server for you.

The card shows one notice at a time. If both are due, the app's comes first, and the server's appears once you press “Later”.