Repository navigation
Releases
Cairn 0.1.34
A sync no longer waits for good on a connection the network left half open, the Android app's included, and cairn status no longer holds the whole tree in memory: on a tree of 868,000 entries it takes 0.4 GB where it went past 10 GB. The server is as in 0.1.33.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.34-linux-x86_64 or, on ARM64, cairn-0.1.34-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.34.sha256
install -D -m 755 cairn-0.1.34-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.34-linux-aarch64
sudo install -m 755 cairn-0.1.34-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.34-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.34-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.34-windows-x86_64.exe and cairn-0.1.34-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.34.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.34-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.34-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.34.html and in GitHub's release v0.1.34, each with its SHA-256.
The server is unchanged since 0.1.33; a 0.1.34 client works with a 0.1.33 server.
Changes in 0.1.34
Fixed:
- A sync no longer waits for good on a connection the network left half open, as when a machine's address
changes in the middle of a download: a read or a write that moves nothing for ten minutes fails as the
network's, and the next sync starts on a new connection. cairn statusandcairn sync --dry-runno longer hold the whole tree in memory. A dry run judges by the
state as a sync that carries a change does, its record of the tree rebuilt from the state rather than the
one kept trusted: on a tree of 868,000 entries 0.4 GB where it went past 10 GB. It says what the full way
says, and writes nothing but what its scan read, the state refusing any other write.cairn statusnames
whatcairn excludeleft out without loading the tree, and loads nothing when nothing is.
Cairn 0.1.33
A changing file no longer holds unrelated uploads back, and status names the file still waiting. The server also avoids repeatedly reading chunks it has already verified.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.33-linux-x86_64 or, on ARM64, cairn-0.1.33-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.33.sha256
install -D -m 755 cairn-0.1.33-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.33-linux-aarch64
sudo install -m 755 cairn-0.1.33-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.33-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.33-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.33-windows-x86_64.exe and cairn-0.1.33-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.33.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.33-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.33-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.33.html and in GitHub's release v0.1.33, each with its SHA-256.
The server has changed in this release: upgrade it before the clients.
Changes in 0.1.33
Fixed:
- A file changed while being uploaded holds back its own operations and those that depend on them.
The rest of the batch is committed, including unchanged files sharing its chunks. The changed file
stays dirty for a fresh scan; hard links, directory moves, staged swaps and notes remain consistent. - Each upload that finds a file changed names its path, with control characters and invalid bytes escaped.
A sync that exhausts its rounds names the last changing file. Status keeps the upload's path across
restarts and paused runs until a sync settles.
Changed:
- On Unix, missing-chunk queries reuse a successful verification for at most an hour while the chunk's
identity, size and timestamps match, saving repeated reads of already uploaded data. Changed chunks
are checked again and damaged ones still count as missing so a good upload replaces them. Downloads
and fsck always verify bytes. Damage that changes no metadata can wait until verification expires
before a missing-chunk query discovers it.
Cairn 0.1.32
A sync that rebuilds its record of the tree from the state, and the daemon's daily check of that record, hold about a megabyte of the state at a time however busy the machine is, where a thread held up let all the others read pile up in memory behind it. The server and the Android app are as in 0.1.31 otherwise.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.32-linux-x86_64 or, on ARM64, cairn-0.1.32-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.32.sha256
install -D -m 755 cairn-0.1.32-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.32-linux-aarch64
sudo install -m 755 cairn-0.1.32-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.32-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.32-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.32-windows-x86_64.exe and cairn-0.1.32-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.32.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.32-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.32-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.32.html and in GitHub's release v0.1.32, each with its SHA-256.
The server is unchanged since 0.1.30; a 0.1.32 client works with a 0.1.30 server.
Changes in 0.1.32
Fixed:
- A sync that rebuilds its record of the tree from the state, and the daemon's daily check of that record,
read the state on several threads and use what each read in order, but went on reading while one thread was
held up, as a busy machine holds threads up, so all the others read meanwhile waited in memory behind it,
with no limit. They now wait for it after two batches a thread, about a megabyte of the state, however busy
the machine.
Cairn 0.1.31
The Android app says when the phone keeps photo backup from running in the background, as some phones do without a word: it asks to be left out of battery optimization, shows when backup last ran in the background, and after two hours held back with something waiting says so, with a button to the phone maker's own setting. The clients and the server are as in 0.1.30 otherwise.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.31-linux-x86_64 or, on ARM64, cairn-0.1.31-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.31.sha256
install -D -m 755 cairn-0.1.31-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.31-linux-aarch64
sudo install -m 755 cairn-0.1.31-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.31-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.31-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.31-windows-x86_64.exe and cairn-0.1.31-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.31.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.31-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.31-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.31.html and in GitHub's release v0.1.31, each with its SHA-256.
The server is unchanged since 0.1.30; a 0.1.31 client works with a 0.1.30 server.
Changes in 0.1.31
Added:
- The Android app says when the phone keeps backup from running in the background, as some phones do without
a word. Turn on backup asks to leave the app out of battery optimization, and while it is not the Photos tab
says so, with Allow in the background. The tab shows when backup last ran in the background, and when
something waited and the phone had not let it run there for two hours while the app was closed, it says so
in red, with a button to the phone maker's own setting (App launch on Honor and Huawei, Autostart on Xiaomi
and vivo, OPPO's startup manager, App Auto-Launch on OnePlus, Samsung's battery settings) or else to the
app's info.
Changed:
- The Android app's hourly run starts on any network and power, and off the ones chosen only looks for new
photos, so that the phone alone can keep it from running; a new photo still goes once they are back.
Cairn 0.1.30
The server takes, ahead of the clients, what they will ask of it: passwords for the web and devices paired by a code, each user's own tokens, thumbnails, a file changed in one request, resumable uploads as the phones' systems speak them, and each folder's retention with a collection that never removes what a kept revision or an acknowledged commit names. Each is named in the server's features, so later clients ask first and work with this server and older ones alike.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.30-linux-x86_64 or, on ARM64, cairn-0.1.30-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.30.sha256
install -D -m 755 cairn-0.1.30-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.30-linux-aarch64
sudo install -m 755 cairn-0.1.30-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.30-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.30-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.30-windows-x86_64.exe and cairn-0.1.30-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.30.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.30-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.30-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.30.html and in GitHub's release v0.1.30, each with its SHA-256.
The server has changed in this release: upgrade it before the clients.
Changes in 0.1.30
Added:
- The server names what it does beyond what every server of the protocol does in
featuresin/infoand
/v1/meso a newer client asks first and does without what an older server lacks, with no upgrade of the
server first. - A web item carries its file's manifest hash, the one a client makes of the same bytes, so a phone after a
reinstall skips what it sent before without sending it again. - Each user lists, makes, relabels and takes back their own tokens through
/v1/tokensand/v1/menames
the token a request came with, so a lost phone is signed out from any of the user's devices. Each token has
a kind,devicebrowserorpairedand the hour it was last used, whichcairn-server token listshows. - Pairing: a signed-in device or the web asks
POST /v1/pairfor a code, with its link and QR code, and a
new device trades it atPOST /v1/pair/claimfor a token of its own, within ten minutes and once. - Passwords for the web:
cairn-server user passwordsets one, a user changes their own atPUT /v1/me/passwordand a sign-in by one makes a token for that browser alone, which signing out takes back.
A password changed signs out every browser it signed in. PUT /filechanges a file already there givenbasethe revision the client saw, keeping everything of it
but its mtime; changed since by another, the bytes go beside it as a conflict copy, never in its place, and
a file deleted since comes back where it was. So a phone's Files app can change files in one request.- Thumbnails at
GET B/thumb/{object}made on the first ask from JPEG, PNG, WebP and GIF, turned as their
EXIF says, and kept; for HEIC and video a client sends its own, which every size is made from. - Resumable uploads:
PUT /filespeaks the IETF's resumable uploads draft in interop versions 3 5 and 6 as
the phones' systems do, a 104 telling where an upload can go on from, so a large video cut off sends only
what is left. The server answers on its own accept loop, which can send that 104. - The web interface signs in with a user's name and password beside a token, and says so where a server
takes none. Its Settings set, change or remove the password, and list every device and browser signed in
as the user, each renamed in place or signed out alone, this browser too; Add a device shows a pairing code
and its QR code with the time it has left. A folder shows a thumbnail in place of each picture's and
video's icon where there is one, loaded as it scrolls near, and a picture's preview shows the larger one
while the file itself loads, a HEIC's in place of the file no browser shows. - Retention, each folder's own:
cairn-server folder retention <folder> --keepor a manager atPUT /v1/ns/{ns}/retentionsets a policy such asall 2d, hourly 1d, daily 30d, weekly forever; trash 30dand
the server gives up what it does once a day, the content of each revision and nothing else of it, so a
device away for any length of time still replays all it missed. With no policy, how every folder starts,
everything is kept and nothing removed. What was given up answers so: a download or restore with Gone, a
history entry withprunedan undelete past the trash period refused, andcairn exportandcairn restoreof a past state refuse, naming what is gone, unless given--skip-prunedwhich leaves it out and
says so. A policy set again
gives back what no collection took yet. - A collection inside the server, once a day, removes the chunks nothing kept names, those given up a delay
ago,serve --gc-delaya week by default, and orphans older than the upload grace--upload-gracetwo
days by default;cairn-server gcdoes it with the server stopped, and beside one says what it would do
with--dry-runor what was done with--statusNo commit is ever acknowledged without its chunks: a
commit holds its chunk directory's gate from its check to its commit and vouches for each chunk it looks at,
and one-request uploads hold theirs until their commit returns. A backup holdingdata/backup.lockholds
every removal back.
Changed:
-
cairn-server fsckonly reads the chunk stores, so a backup's database checked against a live store's
chunks changes nothing there, and counts what retention gave up apart from damage. -
The server's database moves to schema 6 when a server opens it, in one transaction: room for users'
passwords, each token's kind and last use, and each folder's retention and collections.cairn-server downgrademoves it back one schema each time it runs, and says what goes with it.
Fixed:
- The server looks a commit's operation ID up before it checks the commit's chunks, so a commit it took whose
answer was lost is answered as it was when it is sent again, even once its chunks are gone, as a collector
may take them in between.
Cairn 0.1.29
An Android app, for Android 11 and later, its APK among this release's files: it backs up the phone's photos and videos to a folder of the server as they are taken, from the camera's folder and any other switched on, browses the server's folders, downloading a file only when it is opened, and puts the folders chosen into the system's Files picker. The clients and the server are as in 0.1.28 otherwise.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.29-linux-x86_64 or, on ARM64, cairn-0.1.29-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.29.sha256
install -D -m 755 cairn-0.1.29-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.29-linux-aarch64
sudo install -m 755 cairn-0.1.29-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.29-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.29-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.29-windows-x86_64.exe and cairn-0.1.29-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.29.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.29-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.29-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.29.html and in GitHub's release v0.1.29, each with its SHA-256.
The server is unchanged since 0.1.28; a 0.1.29 client works with a 0.1.28 server.
Changes in 0.1.29
Added:
- An Android app (android/, built from source with
scripts/release-android.sh), for Android 11 and later, on
the iPhone's core: photos and videos backed up to a folder and path of the server as they were taken, from
the folders switched on (the camera's by default; screenshots and screen recordings, and each other app's
folder, off until switched on, and changeable while backup runs), their location kept, named as the camera named them or as Nextcloud's iOS app
did, found by MediaStore's generation numbers and sent by WorkManager soon after they are taken, on Wi-Fi
only unless chosen otherwise; the server's folders browsed live, with thumbnails, a file downloaded only when
opened and a video streamed; and each chosen folder in the system's Files picker, which downloads on demand
and adds new files and folders, each queued like a photo before it is sent. Its APK,
cairn-<v>-android.apk, is among the release's files on cairn.storage and GitHub, signed by the project's
key; the app does not update itself, so a later one is installed over it. - crates/mobile builds for Android (a shared library, and its start for Android's certificate checks), and the
engine, a client library there, builds for Android as on Linux.
Cairn 0.1.28
An iPhone app, built from source for now, backs up photos and videos to a folder of the server and browses the server's folders, downloading a file only when it is opened, and shows them in the Files app; the server takes a new file in one request for it. The web interface's preview steps through a folder's files with the arrow keys or Space, the tray's Check for updates says how the check went, and on macOS 27 the tray's menu shows its icons again.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.28-linux-x86_64 or, on ARM64, cairn-0.1.28-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.28.sha256
install -D -m 755 cairn-0.1.28-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.28-linux-aarch64
sudo install -m 755 cairn-0.1.28-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.28-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.28-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.28-windows-x86_64.exe and cairn-0.1.28-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.28.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.28.html and in GitHub's release v0.1.28, each with its SHA-256.
The server has changed in this release: upgrade it before the clients.
Changes in 0.1.28
Added:
-
An iPhone app (ios/, built from source with
scripts/release-ios.sh): photos and videos backed up to a folder
and path of the server, originals as they are, named as Nextcloud's iOS app named them or as on the phone,
sent by the system in the background and by the app; the server's folders browsed live, with thumbnails, a
file downloaded only when opened; and the Files app, which shows a folder, downloads on demand and adds new
files and folders. Its core, crates/mobile, is Rust through uniffi, ready for Android. -
PUT /v1/ns/{ns}/file: a new file in one request, stored as it arrives and committed as the device that sent
it, missing folders on its path made with it, a name taken by other bytes refused or numbered, and a retry of
a request whose answer was lost the same commit (docs/protocol.md, "One-request uploads"). -
The web interface's preview steps through the folder's files, in the order the list shows them: → or Space
to the next, ← or Shift+Space to the one before, or the arrows at the preview's foot, beside "3 of 12". The
preview keeps one size while stepping, so the arrows stay under the pointer whatever each photo's shape, and
the next photo is loaded before it is asked for. In a video or audio clicked to play, the keys stay its own.
Changed:
- The tray's Update now button is Check for updates, or Update to 0.1.x when one is waiting, and it says how
the check went where it only said it had asked: "Checking for a new version…" until the updater has finished,
then, in green, "✓ Up to date: 0.1.x is the latest" once the tray and every daemon run it, or what it
installed and that the tray and the daemons restart into it, or, in red, why it could not. The updater now
writes when each run ended (triedinupdate-state.json), so a check that fails just as the one before
did is seen to have ended too.
Fixed:
- On macOS 27 the tray's menu showed none of its icons, the symbols by its items and the coloured dot by each
root's status, which macOS 26 and Windows show: macOS 27 hides a menu item's image unless the item asks for
it to be shown (preferredImageVisibility), and each item with an image now asks.
Cairn 0.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 conflictsdoes 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.jsona moment before its local API had it: a program that
found a status in the file and then asked the daemon, throughcairn statusor 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.
Cairn 0.1.26
Cairn runs on Linux on ARM64 too: cairn-0.1.26-linux-aarch64 is the client, the CLI and daemon, static like the x86_64 one, and installed copies on aarch64 update themselves from here on. Nothing else changes, on any platform; the server is the same.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.26-linux-x86_64 or, on ARM64, cairn-0.1.26-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.26.sha256
install -D -m 755 cairn-0.1.26-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.26-linux-aarch64
sudo install -m 755 cairn-0.1.26-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.26-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.26-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.26-windows-x86_64.exe and cairn-0.1.26-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.26.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.26.html and in GitHub's release v0.1.26, each with its SHA-256.
The server is unchanged since 0.1.23; a 0.1.26 client works with a 0.1.23 server.
Changes in 0.1.26
Added:
- Linux on ARM64:
cairn-<v>-linux-aarch64, the client (the CLI and daemon), static as the x86_64 one, which
installed copies on aarch64 update to. The server stays x86_64 alone. The release builds it on x86_64 with
cargo-zigbuild, zig as its C compiler and linker, and runs its checks and the smoke test under qemu-aarch64,
against the x86_64 server.
Cairn 0.1.25
On Windows, Explorer shows each file's and folder's sync state on its icon: a green check once synced, blue arrows while a change waits or a sync moves it, a red cross on what is not synced and a yellow mark on each folder above it, from badges the daemon decides; cairn explorer on turns them on, once, as an administrator.
This is early software. Keep another copy of anything you put through it.
Linux (x86_64, static), the client on each device and the server on one machine:
sha256sum -c --ignore-missing cairn-0.1.25.sha256
install -D -m 755 cairn-0.1.25-linux-x86_64 ~/.local/bin/cairn
sudo install -m 755 cairn-0.1.25-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.25-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.25-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.25-windows-x86_64.exe and cairn-0.1.25-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.25.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.25.html and in GitHub's release v0.1.25, each with its SHA-256.
The server is unchanged since 0.1.23; a 0.1.25 client works with a 0.1.23 server.
Changes in 0.1.25
Added:
- On Windows, Explorer shows each entry of a root with a badge on its icon, as Nextcloud's client does: a green
check once synced, blue arrows while a change here waits or a sync moves it, a red cross on what is not
synced, with the reason incairn status, and a yellow mark on each folder above one, on a file whose metadata
this filesystem refused, and on a paused root. What this device excludes has none.cairn explorer onturns
them on, once, asking for an administrator to list the handlers for Explorer, and Explorer shows them once it
starts again;cairn explorer statussays whether they are on and where they come among Explorer's overlay
handlers, of which it shows the first 11;cairn explorer offtakes them away. cairn.exe carries the handler,
and a daemon on a newer version moves the badges to its own. A root shows them once its daemon runs this
version. - The daemon's badges are on the local API for any program to show:
badges { folder }andwatch_badges
(docs/protocol.md, "Badges").