2026-09-30 15:13:34 +02:00
|
|
|
|
# Halkyon Learn
|
|
|
|
|
|
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
Halkyon Learn is for creating, sharing and collaborating on study material. It schedules
|
|
|
|
|
|
flashcards with [FSRS](https://github.com/open-spaced-repetition) to strengthen
|
|
|
|
|
|
retention, and organises study material together with the external references it draws
|
|
|
|
|
|
on. It is offline-first: everything works on the device, without a connection. And the
|
|
|
|
|
|
whole stack is transparent: the app, the server and everything needed to host an
|
|
|
|
|
|
instance are published, so anyone can see how an instance works and run their own.
|
2026-09-30 15:13:34 +02:00
|
|
|
|
|
|
|
|
|
|
- **Offline first.** Each device keeps its own database and syncs in the background
|
|
|
|
|
|
(`serverpod_offline_sync`). Edits made on two devices while offline are never lost:
|
|
|
|
|
|
card content is stored as append-only revisions, and a side changed differently on two
|
|
|
|
|
|
devices is shown as a conflict until the person picks a version
|
|
|
|
|
|
([ADR 0001](docs/adr/0001-offline-sync.md), [ADR 0003](docs/adr/0003-card-revisions.md)).
|
|
|
|
|
|
- **No sign-up needed.** The app starts with an anonymous account; signing in with GitHub
|
|
|
|
|
|
later keeps everything. A GitHub sign-in stores only the numeric GitHub ID.
|
|
|
|
|
|
- **No end-to-end encryption.** Content is readable by the operator of the instance, as on
|
|
|
|
|
|
Mastodon; whoever trusts no operator can run their own
|
|
|
|
|
|
([ADR 0002](docs/adr/0002-no-end-to-end-encryption.md)).
|
|
|
|
|
|
|
|
|
|
|
|
Targets: Linux, Windows, macOS, Android and iOS. There is no web build.
|
|
|
|
|
|
|
|
|
|
|
|
## Packages
|
|
|
|
|
|
|
|
|
|
|
|
| Package | What it is | Licence |
|
|
|
|
|
|
|---|---|---|
|
|
|
|
|
|
| `halkyon_learn_server` | The [Serverpod](https://serverpod.dev) server: endpoints, models, migrations | SSPL-1.0 |
|
|
|
|
|
|
| `halkyon_learn_client` | The client, generated from the server's models | AGPL-3.0-or-later |
|
|
|
|
|
|
| `halkyon_learn_flutter` | The app (`app.halkyon.learn`) | AGPL-3.0-or-later |
|
|
|
|
|
|
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
## Setting up
|
|
|
|
|
|
|
|
|
|
|
|
- **Flutter v3.47.5**, the version CI uses (`FLUTTER_VERSION` in
|
|
|
|
|
|
`.forgejo/workflows/ci.yaml`). Set up each platform you build for with Flutter's own
|
|
|
|
|
|
guides: [Linux](https://docs.flutter.dev/platform-integration/linux/setup),
|
|
|
|
|
|
[Windows](https://docs.flutter.dev/platform-integration/windows/setup),
|
|
|
|
|
|
[Android](https://docs.flutter.dev/platform-integration/android/setup),
|
|
|
|
|
|
[macOS](https://docs.flutter.dev/platform-integration/macos/setup),
|
|
|
|
|
|
[iOS](https://docs.flutter.dev/platform-integration/ios/setup).
|
2026-10-09 11:09:52 +02:00
|
|
|
|
- **The Serverpod CLI v4.0.4**: `dart install serverpod_cli@4.0.4`. Pass `--no-analytics`
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
to every call; otherwise it reports the commands run to Serverpod.
|
|
|
|
|
|
- **Linux**, on top of Flutter's packages, the libraries of three plugins: WebKitGTK
|
|
|
|
|
|
(pulled in by the sign-in package), libsecret (keeps the session) and GStreamer
|
|
|
|
|
|
(plays sounds). On Debian or Ubuntu, Flutter's and these together:
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev \
|
|
|
|
|
|
libwebkit2gtk-4.1-dev libsecret-1-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
- **Windows** needs Developer Mode (Settings › System › For developers): building makes
|
|
|
|
|
|
symbolic links, as Flutter links each plugin's native code into the build and the PDF
|
|
|
|
|
|
engine's build does too, and Windows lets ordinary users make them only in Developer
|
|
|
|
|
|
Mode.
|
|
|
|
|
|
- **No Docker** for development: `serverpod start` and the server's tests run an embedded
|
|
|
|
|
|
PostgreSQL. Docker Compose is only for running an instance (below).
|
fix(app): the app has its own icon instead of Flutter's
The launcher showed Flutter's logo: the project template's icons were
never replaced. tool/app_icons.py now makes every icon from the
kingfisher (assets/icon/halkyon_icon.png), through flutter_launcher_icons
v0.14.4 configured in the app's pubspec: Android's adaptive icon (the
kingfisher inset 16 % on white, for each launcher to cut to its shape)
and the square one before Android 8; iOS's, without transparency;
macOS's, the rounded tile on Apple's grid (824 of 1024 pixels); and
Windows', the rounded tile, its .ico with every size from 16 to 256
pixels (the tool writes only 256). It keeps the iOS project file as it
was, which the tool would break (flutter_launcher_icons issue 634), and
writes the snap's icon as tool/snap_icon.py did, which it replaces.
The Linux runner gives its window the bundled icon too, for desktops
that don't take it from the desktop file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-06 22:49:25 +02:00
|
|
|
|
- **For the scripts in `tool/`**: Python 3 (`tool/app_icons.py` also needs Pillow,
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
`python3-pil`), and for releases what [Releases](#releases) lists.
|
|
|
|
|
|
|
|
|
|
|
|
The rich-text editor comes from our fork of AppFlowy Editor
|
2026-09-30 21:49:04 +02:00
|
|
|
|
([project-halkyon/appflowy-editor](https://code.halkyon.app/project-halkyon/appflowy-editor)),
|
|
|
|
|
|
which `flutter pub get` fetches by itself.
|
2026-09-30 15:13:34 +02:00
|
|
|
|
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
## Running it locally
|
|
|
|
|
|
|
2026-09-30 15:13:34 +02:00
|
|
|
|
The server's secrets live in `halkyon_learn_server/config/passwords.yaml`, which is never
|
|
|
|
|
|
committed. In a fresh clone, create it with a `development` and a `test` section, each
|
|
|
|
|
|
holding `database`, `serverSideSessionKeyHashPepper` and `serviceSecret` (for example from
|
|
|
|
|
|
`openssl rand -base64 32`). GitHub sign-in is optional: add `githubClientId` and
|
|
|
|
|
|
`githubClientSecret` of your own GitHub OAuth app to `development`, registered with the
|
|
|
|
|
|
callback URLs `app.halkyon.learn://github-callback` and `http://127.0.0.1/github-callback`.
|
|
|
|
|
|
|
|
|
|
|
|
Then start the server, its embedded database and the app:
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
cd halkyon_learn_server
|
|
|
|
|
|
serverpod --no-analytics start
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
`serverpod start` applies pending migrations and reloads on changes. The app talks to the
|
|
|
|
|
|
server named by `--dart-define=SERVER_URL=…`, or else to the one in
|
|
|
|
|
|
`halkyon_learn_flutter/assets/config.json` (`http://localhost:8080`). Without
|
|
|
|
|
|
`--no-analytics`, the Serverpod CLI reports usage to Serverpod.
|
|
|
|
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
tool/check.sh
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
runs the format check, the analyzer with the strict lints of `leancode_lint`, the server's
|
|
|
|
|
|
tests (against an embedded PostgreSQL, no Docker needed) and the app's tests. To run it
|
ci: check every push on sahaquiel and deploy a green main
Pushes to main were deployed by hand. Now Forgejo Actions runs tool/check.sh on every
push, and a green main deploys learn.halkyon.eu by itself.
The runner (forgejo-runner v13.1.0) runs on sahaquiel as the unprivileged user `runner`,
with jobs directly on the host: containers would take Docker access, which is root on the
production server, and Forgejo warns that host jobs have no isolation from the runner's
user. So its systemd unit (deploy/runner/forgejo-runner.service) provides it: /home and
the Docker socket invisible, Docker's container networks unreachable, no capabilities,
two cores and 3 GB at most, lowest priority. It is registered to this repository only,
with the UUID and token of Forgejo's "Create new runner" (the old `register` is
deprecated); the token reaches it as a systemd credential. The configuration
(deploy/runner/config.yml) was dry-run against v13.1.0, the unit rates 1.8 in
`systemd-analyze security`. CI runs on pushes only: a pull request from a fork would run
its code on the production server.
The deploy job calls deploy/redeploy.sh as `deploy`, through a key that authorized_keys
pins to that script and to connections from sahaquiel itself. The script deploys the
commit CI checked while it is still main's tip, as a fast-forward, only if every new
commit is signed by a key in deploy/allowed-signers (as the deployed checkout lists
them), after dumping the database (the last ten are kept), and fails unless the server
answers afterwards; a failure puts the checkout back. Tested against the local stack:
refusals of a malformed argument, a stale commit, a forged unsigned commit and a
non-fast-forward, a real deploy with its dump, a repeat, and a failed build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-09-30 21:49:04 +02:00
|
|
|
|
before every push: `ln -s ../../tool/check.sh .git/hooks/pre-push`. CI runs it on every
|
|
|
|
|
|
push too (`.forgejo/workflows/ci.yaml`).
|
2026-09-30 15:13:34 +02:00
|
|
|
|
|
|
|
|
|
|
The sync tests need a running server (`serverpod start`); run them in
|
|
|
|
|
|
`halkyon_learn_flutter` with `flutter test -t requires-server`.
|
|
|
|
|
|
|
|
|
|
|
|
## Running an instance
|
|
|
|
|
|
|
|
|
|
|
|
`deploy/` holds a Docker Compose setup: Caddy (HTTPS), the server and PostgreSQL. Copy
|
|
|
|
|
|
`deploy/.env.example` to `deploy/.env` and fill it in; it explains every value. The
|
|
|
|
|
|
licences require offering the source of what the instance runs to the people who use it.
|
feat(assistant): Claude reads studysets through a connector on the instance
A Claude plan can't drive a chat inside another app, but Claude's apps
(every plan, the phone apps too) can add a remote MCP server as a custom
connector. The instance now is one (ADR 0006): Serverpod's web server
serves the MCP endpoint (/mcp, Streamable HTTP, JSON answers, no
sessions) with five read-only tools over the person's own synced rows
(their studysets, a studyset's cards and notes a page at a time, a
search across cards, a note, their progress), and the OAuth the
specification asks for: protected resource and authorization server
metadata, dynamic client registration, authorization code with PKCE
(S256 only), tokens bound to the resource, iss in the response, refresh
tokens that rotate. Caddy forwards these paths alone to the web server,
which production now runs on 8082.
People connect with a code from the app (Settings › Assistant › Connect
Claude): eight Crockford characters, valid for ten minutes and once,
typed on the authorization page, which names where it returns to, loads
nothing from elsewhere and may not be framed. Anonymous people can
connect too. Codes and tokens are kept only as SHA-256 hashes; an access
token lives an hour, a refresh token 30 days. The app lists what is
connected and disconnects it, which ends its tokens at once; deleting
the account deletes it; a daily job forgets what expired and clients
nobody connected within a week. InstanceInfo says where the connector is
(additive); the migration only adds server-only tables, so devices and
older apps are untouched.
The handlers take plain requests, so the integration tests drive the
whole flow (registration, the code, tokens, refresh, the tools, another
person's content, disconnecting, expiry, pruning, account deletion)
without a web server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-10 12:13:00 +02:00
|
|
|
|
Assistants such as Claude read people's studysets through the instance's MCP connector at
|
|
|
|
|
|
`/mcp` ([ADR 0006](docs/adr/0006-assistant-connector.md)): `webServer` in
|
|
|
|
|
|
`halkyon_learn_server/config/production.yaml` names its public address, as `apiServer`
|
|
|
|
|
|
does for the app.
|
2026-09-30 15:13:34 +02:00
|
|
|
|
|
ci: check every push on sahaquiel and deploy a green main
Pushes to main were deployed by hand. Now Forgejo Actions runs tool/check.sh on every
push, and a green main deploys learn.halkyon.eu by itself.
The runner (forgejo-runner v13.1.0) runs on sahaquiel as the unprivileged user `runner`,
with jobs directly on the host: containers would take Docker access, which is root on the
production server, and Forgejo warns that host jobs have no isolation from the runner's
user. So its systemd unit (deploy/runner/forgejo-runner.service) provides it: /home and
the Docker socket invisible, Docker's container networks unreachable, no capabilities,
two cores and 3 GB at most, lowest priority. It is registered to this repository only,
with the UUID and token of Forgejo's "Create new runner" (the old `register` is
deprecated); the token reaches it as a systemd credential. The configuration
(deploy/runner/config.yml) was dry-run against v13.1.0, the unit rates 1.8 in
`systemd-analyze security`. CI runs on pushes only: a pull request from a fork would run
its code on the production server.
The deploy job calls deploy/redeploy.sh as `deploy`, through a key that authorized_keys
pins to that script and to connections from sahaquiel itself. The script deploys the
commit CI checked while it is still main's tip, as a fast-forward, only if every new
commit is signed by a key in deploy/allowed-signers (as the deployed checkout lists
them), after dumping the database (the last ten are kept), and fails unless the server
answers afterwards; a failure puts the checkout back. Tested against the local stack:
refusals of a malformed argument, a stale commit, a forged unsigned commit and a
non-fast-forward, a real deploy with its dump, a repeat, and a failed build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-09-30 21:49:04 +02:00
|
|
|
|
learn.halkyon.eu itself deploys from `main` once CI is green: `deploy/redeploy.sh`, run by
|
|
|
|
|
|
the CI runner described in `deploy/runner/`, deploys only commits signed by a key in
|
2026-10-03 16:45:40 +02:00
|
|
|
|
`deploy/allowed-signers`. It backs up its database every hour, off-site and encrypted;
|
|
|
|
|
|
[`deploy/backups.md`](deploy/backups.md) says how to set that up and how to restore.
|
ci: check every push on sahaquiel and deploy a green main
Pushes to main were deployed by hand. Now Forgejo Actions runs tool/check.sh on every
push, and a green main deploys learn.halkyon.eu by itself.
The runner (forgejo-runner v13.1.0) runs on sahaquiel as the unprivileged user `runner`,
with jobs directly on the host: containers would take Docker access, which is root on the
production server, and Forgejo warns that host jobs have no isolation from the runner's
user. So its systemd unit (deploy/runner/forgejo-runner.service) provides it: /home and
the Docker socket invisible, Docker's container networks unreachable, no capabilities,
two cores and 3 GB at most, lowest priority. It is registered to this repository only,
with the UUID and token of Forgejo's "Create new runner" (the old `register` is
deprecated); the token reaches it as a systemd credential. The configuration
(deploy/runner/config.yml) was dry-run against v13.1.0, the unit rates 1.8 in
`systemd-analyze security`. CI runs on pushes only: a pull request from a fork would run
its code on the production server.
The deploy job calls deploy/redeploy.sh as `deploy`, through a key that authorized_keys
pins to that script and to connections from sahaquiel itself. The script deploys the
commit CI checked while it is still main's tip, as a fast-forward, only if every new
commit is signed by a key in deploy/allowed-signers (as the deployed checkout lists
them), after dumping the database (the last ten are kept), and fails unless the server
answers afterwards; a failure puts the checkout back. Tested against the local stack:
refusals of a malformed argument, a stale commit, a forged unsigned commit and a
non-fast-forward, a real deploy with its dump, a repeat, and a failed build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-09-30 21:49:04 +02:00
|
|
|
|
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
## Releases
|
|
|
|
|
|
|
feat: an F-Droid repository at learn.halkyon.app
Releases also publish the APK in the project's own F-Droid repository,
https://learn.halkyon.app/fdroid/repo. tool/fdroid_repo.sh adds the APK,
signs the indexes with the repository's own key and uploads them to
ramiel as the user fdroid, whose key can only write into the folder
Caddy serves (rrsync), the APKs first and the indexes last.
tool/release.sh checks that key and its password before building and
publishes after the Forgejo release.
- tool/release/fdroid/ holds the repository's settings (Halkyon, the
snap's icon) and the app's listing (the snap's text), with the
anti-features TetheredNet (learn.halkyon.eu only, for now) and
NonFreeNet (YouTube, the server's SSPL) declared with their reasons,
in F-Droid's own definitions and with its icons (fdroiddata, AGPL v3).
- The index key's certificate is pinned: a new key would make the F-Droid
app refuse the repository.
- fdroidserver v2.4.5, since Ubuntu's v2.2.1 knows neither TetheredNet
nor reasons.
README and AGENTS.md describe it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 20:25:02 +02:00
|
|
|
|
Releases are published on [code.halkyon.app](https://code.halkyon.app/project-halkyon/halkyon_learn/releases),
|
feat: releases work out their version from the commits
tool/release.sh no longer takes a version: it works it out from the
commits since the last release, following semantic versioning (feat
raises the minor number, fix or perf the patch number, a breaking change
the major number from 1.0 on and the minor one before; other types
release nothing), or takes major, minor or patch as chosen. It shows the
version and its commits and asks first, checks that CI is green on the
newest commit with code, writes the version and a raised build number
into the pubspec in a signed release commit with a signed tag, and
pushes only once the APK and the snap passed their checks. The release
notes list the features and fixes. A run that stopped after its release
commit and tag carries on with them.
Channels for now: the release on code.halkyon.app (APK, snap, checksums)
and the F-Droid repository; the Snap Store upload is off until
snap_store_channel names a channel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 21:22:50 +02:00
|
|
|
|
with the APK and the snap, and the APK also in the project's F-Droid repository
|
2026-10-05 20:41:54 +02:00
|
|
|
|
(`https://halkyon.app/fdroid/repo?fingerprint=E8082788756F6B7E682AA22FCEAD24B53E2A8B0912AD66D65E8C2D4F07BB94B0`,
|
feat: releases work out their version from the commits
tool/release.sh no longer takes a version: it works it out from the
commits since the last release, following semantic versioning (feat
raises the minor number, fix or perf the patch number, a breaking change
the major number from 1.0 on and the minor one before; other types
release nothing), or takes major, minor or patch as chosen. It shows the
version and its commits and asks first, checks that CI is green on the
newest commit with code, writes the version and a raised build number
into the pubspec in a signed release commit with a signed tag, and
pushes only once the APK and the snap passed their checks. The release
notes list the features and fixes. A run that stopped after its release
commit and tag carries on with them.
Channels for now: the release on code.halkyon.app (APK, snap, checksums)
and the F-Droid repository; the Snap Store upload is off until
snap_store_channel names a channel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 21:22:50 +02:00
|
|
|
|
added in the F-Droid app as a repository). The Snap Store (`halkyon-learn`) follows.
|
feat(instances): choose the instance, and keep accounts on several
A new install asks first which instance to keep the person's studysets
on, as Mastodon's apps do: an address, checked to answer as an instance
of Halkyon Learn, or the build's own (learn.halkyon.eu) in one tap.
Nothing is made anywhere before that, not even an anonymous account. An
install from before goes on with the build's instance without asking.
As Moshidon does, the device keeps an account on each instance it was
used with, each signed in with its own folder and session, one in use at
a time. Settings › Switch account lists them: another one switches at
once, anonymous accounts included; Add account chooses another instance;
removing one not in use deletes what the device holds of it. Signing out
ends only the account in use.
The build's own instance keeps its data where installs kept it before
(`people/`, Serverpod's own session key), so they keep everything; other
instances get folders and keys of their own. What the device shares
across instances (its settings, sounds, the Pomodoro timer's place in the
system) is made once and outlives every switch.
The F-Droid listing drops TetheredNet: the app is no longer tied to the
project's instance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-10 06:00:47 +02:00
|
|
|
|
Their builds offer learn.halkyon.eu, the project's instance, at first start; people
|
|
|
|
|
|
may choose another there, and keep accounts on several.
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
|
|
|
|
|
|
- **Checking a download:** `SHA256SUMS` lists the checksum of every file, signed with the
|
|
|
|
|
|
maintainer's GPG key (`SHA256SUMS.asc`). The APK is signed with the app's key, whose
|
|
|
|
|
|
certificate has the SHA-256
|
|
|
|
|
|
`27:E2:43:FC:BD:C8:26:FF:98:AB:7D:BB:10:43:6C:98:C3:BE:A2:4B:2A:01:5E:94:E4:CF:C7:D1:FC:2A:00:6C`
|
|
|
|
|
|
(`apksigner verify --print-certs` shows it).
|
feat: releases work out their version from the commits
tool/release.sh no longer takes a version: it works it out from the
commits since the last release, following semantic versioning (feat
raises the minor number, fix or perf the patch number, a breaking change
the major number from 1.0 on and the minor one before; other types
release nothing), or takes major, minor or patch as chosen. It shows the
version and its commits and asks first, checks that CI is green on the
newest commit with code, writes the version and a raised build number
into the pubspec in a signed release commit with a signed tag, and
pushes only once the APK and the snap passed their checks. The release
notes list the features and fixes. A run that stopped after its release
commit and tag carries on with them.
Channels for now: the release on code.halkyon.app (APK, snap, checksums)
and the F-Droid repository; the Snap Store upload is off until
snap_store_channel names a channel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 21:22:50 +02:00
|
|
|
|
- **Versions** follow [semantic versioning](https://semver.org): `version` in
|
|
|
|
|
|
`halkyon_learn_flutter/pubspec.yaml`, `<major>.<minor>.<patch>+<build>`. Since the last
|
|
|
|
|
|
release, a commit typed `feat` raises the minor number, `fix` or `perf` the patch
|
|
|
|
|
|
number, and a breaking one (`feat!:` or a `BREAKING CHANGE:` line) the major number from
|
|
|
|
|
|
1.0 on, the minor one before; other commits release nothing by themselves. Every
|
|
|
|
|
|
release raises the build number: Android only installs a higher one over an older, and
|
|
|
|
|
|
the server tells apps below the build it supports to update.
|
|
|
|
|
|
- **Making one** is for maintainers, on their own machine and never in CI:
|
|
|
|
|
|
`tool/release.sh`, or `tool/release.sh minor` (or `major`, `patch`) to choose. It needs
|
|
|
|
|
|
`main` clean, pushed and green in CI, the app's key, the F-Droid repository's key and
|
|
|
|
|
|
a Forgejo token; its header says more. It shows the version and its commits and asks
|
|
|
|
|
|
first, then writes the version into the pubspec in a signed release commit with a
|
|
|
|
|
|
signed tag, builds the APK and the snap (`snap/snapcraft.yaml`, built in LXD; its icon
|
fix(app): the app has its own icon instead of Flutter's
The launcher showed Flutter's logo: the project template's icons were
never replaced. tool/app_icons.py now makes every icon from the
kingfisher (assets/icon/halkyon_icon.png), through flutter_launcher_icons
v0.14.4 configured in the app's pubspec: Android's adaptive icon (the
kingfisher inset 16 % on white, for each launcher to cut to its shape)
and the square one before Android 8; iOS's, without transparency;
macOS's, the rounded tile on Apple's grid (824 of 1024 pixels); and
Windows', the rounded tile, its .ico with every size from 16 to 256
pixels (the tool writes only 256). It keeps the iOS project file as it
was, which the tool would break (flutter_launcher_icons issue 634), and
writes the snap's icon as tool/snap_icon.py did, which it replaces.
The Linux runner gives its window the bundled icon too, for desktops
that don't take it from the desktop file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-06 22:49:25 +02:00
|
|
|
|
comes from `tool/app_icons.py`), checks both, signs the checksums, pushes, and
|
feat: releases work out their version from the commits
tool/release.sh no longer takes a version: it works it out from the
commits since the last release, following semantic versioning (feat
raises the minor number, fix or perf the patch number, a breaking change
the major number from 1.0 on and the minor one before; other types
release nothing), or takes major, minor or patch as chosen. It shows the
version and its commits and asks first, checks that CI is green on the
newest commit with code, writes the version and a raised build number
into the pubspec in a signed release commit with a signed tag, and
pushes only once the APK and the snap passed their checks. The release
notes list the features and fixes. A run that stopped after its release
commit and tag carries on with them.
Channels for now: the release on code.halkyon.app (APK, snap, checksums)
and the F-Droid repository; the Snap Store upload is off until
snap_store_channel names a channel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 21:22:50 +02:00
|
|
|
|
publishes on code.halkyon.app and in the F-Droid repository; the Snap Store once it is
|
|
|
|
|
|
switched on in the script. Besides Flutter and the Android SDK, it uses snapcraft with
|
|
|
|
|
|
LXD, a JDK (keytool), GnuPG, curl, jq, unzip, squashfs-tools, rsync and fdroidserver.
|
|
|
|
|
|
Release builds made without the app's key are signed with the debug key and can't
|
|
|
|
|
|
update a released app.
|
feat: an F-Droid repository at learn.halkyon.app
Releases also publish the APK in the project's own F-Droid repository,
https://learn.halkyon.app/fdroid/repo. tool/fdroid_repo.sh adds the APK,
signs the indexes with the repository's own key and uploads them to
ramiel as the user fdroid, whose key can only write into the folder
Caddy serves (rrsync), the APKs first and the indexes last.
tool/release.sh checks that key and its password before building and
publishes after the Forgejo release.
- tool/release/fdroid/ holds the repository's settings (Halkyon, the
snap's icon) and the app's listing (the snap's text), with the
anti-features TetheredNet (learn.halkyon.eu only, for now) and
NonFreeNet (YouTube, the server's SSPL) declared with their reasons,
in F-Droid's own definitions and with its icons (fdroiddata, AGPL v3).
- The index key's certificate is pinned: a new key would make the F-Droid
app refuse the repository.
- fdroidserver v2.4.5, since Ubuntu's v2.2.1 knows neither TetheredNet
nor reasons.
README and AGENTS.md describe it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 20:25:02 +02:00
|
|
|
|
- **The F-Droid repository** is kept by `tool/fdroid_repo.sh` (fdroidserver v2.4.5,
|
|
|
|
|
|
e.g. `pipx install fdroidserver==2.4.5`); its settings and the app's listing are in
|
|
|
|
|
|
`tool/release/fdroid/`.
|
docs: the README's aims, developer setup and releases
The README opens with what the app aims at: creating, sharing and
collaborating on study material, FSRS for retention, study material
organised with its external references, offline-first, and a transparent
stack anyone can host.
"Setting up" lists what developers need: Flutter as CI pins it, with
Flutter's own guide per platform; the Serverpod CLI; the Linux packages,
with what each plugin needs them for; Developer Mode on Windows, and why;
no Docker for development; Python for the scripts in tool/.
"Releases" says where releases are published, how to check a download
(the signed checksums, the APK certificate's fingerprint), how versions
are numbered, and how a maintainer makes one with tool/release.sh.
AGENTS.md: Windows needs Developer Mode for Flutter's plugin links too,
not only for pdfrx's build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-05 17:00:27 +02:00
|
|
|
|
|
2026-09-30 15:13:34 +02:00
|
|
|
|
## More
|
|
|
|
|
|
|
|
|
|
|
|
- [`AGENTS.md`](AGENTS.md): how the code is organised and the rules it follows.
|
|
|
|
|
|
- [`docs/adr/`](docs/adr/): the architecture decisions and their reasons.
|
|
|
|
|
|
- [`CONTRIBUTING.md`](CONTRIBUTING.md): licences of contributions and the sign-off.
|
|
|
|
|
|
- [`LICENSE.md`](LICENSE.md): which licence covers what.
|