Split the apps and the SDK out of Fennec OS

The apps are developed apart from the OS now, each in its own repo under
gitea.bluefox.support/fennec:
- sdk: sf-app (the app contract: manifest, permissions, store rules,
  sandbox, launch; from sf-ipc), sf-ui, sf-pack, the app template, the
  developer guide. The OS depends on it by tag (v0.1.0).
- youtube, steam: store apps. netflex (native) replaces the Netflex web app.
- store: the Fennec catalog, the store source a new TV starts with.

This repo keeps the OS and its own apps (Settings, App Store, AirPlay,
Miracast). sf-ipc re-exports sf-app, so OS code is mostly unchanged.

- Store apps may register for DIAL (the `dial` permission); an official
  app with the same DIAL name wins.
- Built-in icon names are for official apps only.
- The image installs the catalog apps at build time (factory-store.toml,
  sf-update store in mkosi.postinst.chroot). Steam's system part stays in
  the image: 32-bit libraries, controller udev rules (from Valve's apt
  repo), Valve's key.
- Older TVs move over by themselves: sf-update adds the replacements to
  store.toml once, the old factory app stays until its replacement is
  installed, YouTube's and Steam's data folders move to the new ids, and
  the old sf-app-<id> packages are not installed any more.

Shell 0.3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-10-25 17:58:21 +01:00
parent d7e9fe4568
commit deedf1416a
67 changed files with 393 additions and 13476 deletions

View File

@@ -6,9 +6,10 @@
# With no package names it does the shell and every app. A package whose
# version is already in the registry is skipped (bump the version to publish):
# shell version = [workspace.package] version in Cargo.toml
# app:<id> version = "version" in apps/<id>/app.toml, or what the app's
# hook says (tools/pkg/<id>/package.sh: Steam follows Valve's
# official steam-launcher package)
# app:<id> version = "version" in apps/<id>/app.toml
#
# Only the OS's own apps are packages here. Store apps (Netflex, YouTube,
# Steam...) are released from their own repos (docs/store.md).
#
# Environment:
# SF_SIGNING_KEY Ed25519 private key: the PEM file base64-encoded on one
@@ -100,17 +101,10 @@ do_shell() {
pack sf-shell "$version" "$dir"
}
# An app with a hook (tools/pkg/<id>/package.sh, e.g. Steam from Valve's
# official package) gets its files and version from it: `--version` prints
# the upstream version, `<dir>` fills the app folder.
do_app() {
local id=$1 src="$ROOT/apps/$1" version hook="$ROOT/tools/pkg/$1/package.sh"
local id=$1 src="$ROOT/apps/$1" version
[ -f "$src/app.toml" ] || { echo "no app $id" >&2; return 1; }
if [ -f "$hook" ]; then
version=$(bash "$hook" --version)
else
version=$(toml_version "$src/app.toml")
fi
version=$(toml_version "$src/app.toml")
[ -n "$version" ] || { echo "apps/$id/app.toml has no version, skipped"; return; }
if published "sf-app-$id" "$version"; then
echo "sf-app-$id $version: already published"
@@ -119,9 +113,6 @@ do_app() {
local dir="$TMP/sf-app-$id"
rm -rf "$dir"
cp -r "$src" "$dir"
if [ -f "$hook" ]; then
[ "$(bash "$hook" "$dir" | tail -1)" = "$version" ] || { echo "$id: the hook built another version than $version" >&2; return 1; }
fi
chmod -R u=rwX,go=rX "$dir"
# Git on Windows loses the x bit: programs live in bin/.
[ -d "$dir/bin" ] && chmod -R a+x "$dir/bin"