Cairn

Cairn 0.1.27

  • cairn-0.1.27-linux-x86_64 Linux x86-64: cairn, the client (the CLI and daemon), 10.9 MB 1049a2fde7ebe28bf6ac5489de2af58e5780235c79889f840fd416389593da81
  • cairn-0.1.27-linux-x86_64-server Linux x86-64: cairn-server, the server, 6.2 MB d827b8f61c727c9e6d8a00eaeed7bc5157563ff4a56bf983f1f30e05d9d17bf3
  • cairn-0.1.27-linux-aarch64 Linux ARM64 (aarch64): cairn, the client (the CLI and daemon), 8.7 MB 5f2fd6bbdbbf046da019d6a1e37a8034bea02579b97693eaf9886fe84de8e59f
  • cairn-0.1.27-macos-universal.app.tar.gz macOS: Cairn.app, the CLI and daemon, 9.0 MB 917af6bebd680fba51ff2456c926bb9d94b409c539bf0a52552cc43917c15255
  • cairn-0.1.27-macos-universal-tray.app.tar.gz macOS: Cairn Tray.app, the tray, 7.3 MB 99e305a6f05f8a5c62eb76b46bff60d60806370220d202843f92798283bf87e1
  • cairn-0.1.27-windows-x86_64.exe Windows x86-64: cairn.exe, the CLI and daemon, 12.1 MB 9a4379f31e499dc740235833580cc6fe4625f7958db486ff5860c2d9e8a951cf
  • cairn-0.1.27-windows-x86_64-tray.exe Windows x86-64: cairn-tray.exe, the tray, 10.5 MB 1420e065fb3a5b0d9da68c0adb06cedaa4781e8ad2c08d29e6d867ec6fcfd4bc
  • cairn-0.1.27.sha256 every file's SHA-256: sha256sum -c --ignore-missing cairn-0.1.27.sha256 ee7eae8384c3a6ab2593f2cbc60a595b09acaa6471cdc7c5b3a8f3a5c2dd3567
  • update.json the signed list of these files, which every installed copy checks 045601c6ddbe6ffac5ee77a142146291da68c4ce2db1e55ec23e154e52394609

The same files are in GitHub's release v0.1.27.

On Windows the tray's menu keeps working however long the tray runs, where about an hour into a sync no item of it did anything; the tray's Conflicts tab answers in a moment on a large root, where it could wait a minute and give up; and the tray's menu lists Recently deleted, Problems and Conflicts in submenus, with an icon by each item. The server reads a download's chunks 32 at once, so a device's first sync from a store on hard disks comes several times as fast.

This is early software. Keep another copy of anything you put through it.

Linux (static), the client on each device, cairn-0.1.27-linux-x86_64 or, on ARM64, cairn-0.1.27-linux-aarch64, and the server, x86_64, on one machine:

sha256sum -c --ignore-missing cairn-0.1.27.sha256
install -D -m 755 cairn-0.1.27-linux-x86_64 ~/.local/bin/cairn       # ARM64: cairn-0.1.27-linux-aarch64
sudo install -m 755 cairn-0.1.27-linux-x86_64-server /usr/local/bin/cairn-server

macOS: unpack cairn-0.1.27-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.27-macos-universal-tray.app.tar.gz (Cairn Tray.app) into ~/Applications; README.md has the launchd agent for Cairn.app. Windows: put cairn-0.1.27-windows-x86_64.exe and cairn-0.1.27-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.27.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.

Every file is at https://cairn.storage/download/0.1.27.html and in GitHub's release v0.1.27, each with its SHA-256.

The server has changed in this release: upgrade it before the clients.

Changes in 0.1.27

Changed:

  • The server reads a download's chunks 32 at once, handing them on in the order asked, where it read one after the other: a store on hard disks reorders what it has queued, and on a mirror of two, cold chunks of under 64 KiB came 4 to 5 times as fast, both disks at work. A device's first sync is bound by this. What is read ahead is bounded (16 MiB, or 64 chunks, beyond the next to be sent), and a download still ends at the first chunk missing or damaged in the order asked, as before.
  • The tray's menu lists Recently deleted, Problems and Conflicts in submenus, as it lists Recent activity, so pointing at one shows them, every root's and up to 100, without opening the window; Recently deleted comes next to Recent activity, before Problems. A click on a problem or on something deleted opens its tab in the window, and one on a conflict shows its copy in its folder; each ends with "Open in the window…". The tray asks each daemon for both lists once it answers, and again when its activity shows a conflict made or its copy dealt with, or a delete (at most once a minute), where it asked for conflicts only when one was made and for what was deleted only when its tab was opened.
  • Each item of the tray's menu has an icon: a gear by Settings, a clock by Recent activity, a bin by Recently deleted, a warning sign by Problems, a branch by Conflicts, circling arrows by Sync now, and so on to a power sign by Quit, and by each root's status a dot in its light's colour, the tray badge's. On macOS they are the system's own symbols (SF Symbols), which follow the menu's light or dark and its highlight; on Windows they are drawn by the tray, in white on a dark menu and black on a light one, as the system's setting for apps says. A root's status line can be clicked now, and opens the window at Status: Windows draws an item that cannot be clicked in grey, its icon too, so the dot would have lost its colour.

Fixed:

  • On Windows no item of the tray's menu did anything about an hour after the tray started, while a root synced: a click on Settings, Sync now, Pause or even Quit closed the menu and nothing followed. The menu is made anew whenever a root's state changes, and the library that makes it (muda, as Tauri 2 has it) numbers each item it ever makes from one counter, but finds the item clicked by the low 16 bits of the id Windows hands back, so once the count passed 65535 it found none. The tray now finds those itself, from the whole id Windows gives, and hands the click on as before; an earlier click, which muda still finds, is left to it. Restarting the tray brought the menu back for the next hour.
  • The tray's Conflicts tab could stay at "Asking its daemon…" and then say "the daemon did not answer within 60 s", on a root that had ever had a conflict, all of them long dealt with: to list the open ones the daemon replayed the server's whole journal, 13 s for a large root's on a fast machine and more than a minute on a Mac. It now reads them from its base, the server's tree at its last sync, brought up to the head by the journal since, with the one commit that made each copy still there, and answers in a few hundredths of a second; cairn conflicts does the same, and --all, which says where each copy dealt with was made, still reads the whole journal.
  • A daemon wrote each status to .cairn/daemon.json a moment before its local API had it: a program that found a status in the file and then asked the daemon, through cairn status or the tray, could be told the one before, when a busy machine held the daemon up between the two. The local API now has it first, so the file is never ahead of what the daemon answers.
  • On Windows the tray's menu is macOS's upside down, every item of it, as it rises from the taskbar where macOS drops it from the menu bar: Quit is at the top, furthest from the icon, as it is at the bottom on macOS, where it sat at the bottom next to Settings; each root's actions and status lines now read up from the icon too, Sync now nearest it.