Package-based updates: sf-update, signed shell and app packages

- sf-update (root): lists sf-shell / sf-app-* in the Gitea generic registry,
  downloads, checks the Ed25519 signature and unpacks to /var/lib/sf-pkg,
  switches via current/previous/staged symlinks; the factory copies on the
  read-only root stay as fallback. A new shell is on trial and rolls back
  after 3 failed starts.
- Launcher: apps from factory + installed packages (newer version wins),
  Settings > System > Updates (check, install now), shell trial confirm.
- Image: sf-update units (boot apply, 6-hourly download, launcher requests),
  sf-shell-exec wrapper for sf-remote, factory versions, registry token.
- CI: .gitea/workflows/packages.yml builds, signs and uploads packages whose
  version isn't published yet (tools/pkg/packages.sh).
- docs/updates.md: protocol and layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-24 09:27:59 +02:00
parent 79b03cac95
commit d5be90443d
32 changed files with 1892 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
# sf-update: where the shell and app packages come from (docs/updates.md).
# Per-TV overrides (another server, a new token): /var/lib/sf-pkg/update.toml
server = "https://gitea.bluefox.support"
owner = "bluefox"
# "user:token" with read:package only; put there by image/build.sh from
# image/secrets/update-token (not in git).
token_file = "/usr/share/smartfox/update-token"
# Ed25519 key that signs every package (private half: CI secret SF_SIGNING_KEY).
public_key = "8CX4spdfqE17SPGoXWMrLxJCusyAxIZndOc/0zvaal4="