Skip to content

Cairn 0.1.17

Choose a tag to compare

@stepankandrushin stepankandrushin released this 11 Nov 16:51
· 73 commits to main since this release

A new server's first folder is called cloud, a folder can be renamed and still answers to its old name, each person can give a folder a name of their own, which their devices suggest from the folder they sync it into, and the web shows times as year-month-day with icons throughout its menus.

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

Linux (x86_64, static):

sha256sum -c cairn-0.1.17-x86_64-unknown-linux-musl.tar.gz.sha256
tar xzf cairn-0.1.17-x86_64-unknown-linux-musl.tar.gz

macOS: unpack both .app.tar.gz into ~/Applications; README.md has the launchd agent for Cairn Sync.app. Windows: put cairn-0.1.17-windows-x86_64.exe and cairn-tray-0.1.17-windows-x86_64.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.17-linux-x86_64 is the bare Linux program, which installed copies update to. update.json is the signed list of this release's files that every installed copy checks.

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

Changes in 0.1.17

Added:

  • Each user's own name for a folder, which only they see and which changes nothing else: the web interface
    shows it wherever it names the folder (the sidebar, the top of the path, page titles, Members, Shares and
    links, Recently deleted), its Settings set it or take it away (Folder names), and cairn folders lists it.
    A device offers the name of the directory it syncs the folder into, as cairn init joins and each time its
    daemon starts, which the server keeps only while the user has none: a folder synced into ~/Sync shows as
    "Sync" until they choose another.
  • cairn-server folder rename <from> <to>, with the server stopped: one transaction, the folder's chunks left
    where they are, so nothing is moved or copied; its former name goes on reaching it, so every device, link
    and bookmark made with it goes on working. Each device takes the new name up at its next sync, and no other
    folder may take the former name; folder list shows it.

Changed:

  • A new server's first folder is cloud, where it was default; a server from before keeps its default
    and gets no second one. cairn init without --folder syncs the one folder the token reaches, whatever its
    name, and with several names them and asks which, where it took default.

  • The server's database is schema 5: a renamed folder's former names, each user's own names for folders, and
    where a renamed folder keeps its chunks. A server moves a database of schema 4 to it when it starts, in one
    transaction, so a kill or a full disk leaves 4 or 5 whole. A server of schema 4 refuses it; cairn-server downgrade --data <dir>, with the server stopped, now moves it back one schema each time it runs: to 4,
    dropping what schema 5 added, once no folder is renamed away from its first name, then to 3.

  • The web interface writes times on a 24-hour clock and dates as year-month-day (2026-11-11 09:50), where it
    followed the browser's locale. Its new Settings page, at the top of every page, chooses a 12-hour clock or
    another date order; the choice is kept in that browser.

  • The web's sidebar gives a folder's Recently deleted, Members, and Shares and links an icon each, and Shared
    with me one of its own in place of Members' people. They stay listed under the folder while Shared with me
    or Settings is open, until another folder is opened. Settings has a gear, on a phone the gear alone, Sign out a
    door, and Upload folder a folder with an arrow.

Fixed:

  • The web's Recently deleted squeezed the Name column to a few letters wide on a narrow window or phone. As
    the page narrows, the Was in and By columns, then Size and Deleted, move to lines under the name, and a
    path breaks after a / rather than inside a word.