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

@@ -44,6 +44,8 @@ export struct AppEntry {
has-image: bool,
// No picture and no built-in icon: the name's first letter is drawn.
initial: string,
// A phone can start it by casting (DIAL).
cast: bool,
}
// Top Shelf card (Netflex: continue watching or its first home row).
@@ -91,7 +93,8 @@ export component App inherits Window {
in property <string> net-label: "";
in property <int> remote-battery: -1;
// Top Shelf: shown while the app `shelf-app` is focused and there are items.
in property <string> shelf-app: "netflex";
// The Netflex store app (fennec/netflex); its cards come from shelf.rs.
in property <string> shelf-app: "support.bluefox.netflex";
in property <string> shelf-title;
in property <[ShelfItem]> shelf-items;
// Remote pairing guide (state comes from sf-remote).

View File

@@ -8,7 +8,7 @@ export component AppIcon inherits Rectangle {
in property <bool> has-image: false;
// No picture and no built-in icon: the app name's first letter.
in property <string> letter;
property <bool> builtin: root.icon == "netflex" || root.icon == "youtube" || root.icon == "airplay" || root.icon == "miracast" || root.icon == "settings" || root.icon == "store" || root.icon == "steam";
property <bool> builtin: root.icon == "airplay" || root.icon == "miracast" || root.icon == "settings" || root.icon == "store";
if root.has-image: Image {
width: 100%;
@@ -46,60 +46,6 @@ export component AppIcon inherits Rectangle {
}
}
if root.icon == "steam": Rectangle {
// Steam mark: the piston and valve in a disc (Simple Icons, CC0).
Path {
width: 100%; height: 100%;
viewbox-x: -3; viewbox-y: -3;
viewbox-width: 30; viewbox-height: 30;
commands: "M11.979 0C5.678 0 .511 4.86.022 11.037l6.432 2.658c.545-.371 1.203-.59 1.912-.59.063 0 .125.004.188.006l2.861-4.142V8.91c0-2.495 2.028-4.524 4.524-4.524 2.494 0 4.524 2.031 4.524 4.527s-2.03 4.525-4.524 4.525h-.105l-4.076 2.911c0 .052.004.105.004.159 0 1.875-1.515 3.396-3.39 3.396-1.635 0-3.016-1.173-3.331-2.727L.436 15.27C1.862 20.307 6.486 24 11.979 24c6.627 0 11.999-5.373 11.999-12S18.605 0 11.979 0zM7.54 18.21l-1.473-.61c.262.543.714.999 1.314 1.25 1.297.539 2.793-.076 3.332-1.375.263-.63.264-1.319.005-1.949s-.75-1.121-1.377-1.383c-.624-.26-1.29-.249-1.878-.03l1.523.63c.956.4 1.409 1.5 1.009 2.455-.397.957-1.497 1.41-2.454 1.012H7.54zm11.415-9.303c0-1.662-1.353-3.015-3.015-3.015-1.665 0-3.015 1.353-3.015 3.015 0 1.665 1.35 3.015 3.015 3.015 1.663 0 3.015-1.35 3.015-3.015zm-5.273-.005c0-1.252 1.013-2.266 2.265-2.266 1.249 0 2.266 1.014 2.266 2.266 0 1.251-1.017 2.265-2.266 2.265-1.253 0-2.265-1.014-2.265-2.265z";
fill: @linear-gradient(160deg, #ffffff 0%, #c7e4f8 100%);
}
}
if root.icon == "netflex": Rectangle {
// Netflex mark: mirrored "N" in three ribbons (from netflex/apps/web/public/favicon.svg).
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M7 3h6v26H7z";
fill: @linear-gradient(180deg, #b20710 0%, #831010 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19 3h6v26h-6z";
fill: @linear-gradient(0deg, #b20710 0%, #831010 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M18.4 3h6.6L13.6 29H7z";
fill: #00000059;
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M19 3h6L13 29H7z";
fill: @linear-gradient(35deg, #e50914 0%, #f6303a 100%);
}
}
if root.icon == "youtube": Rectangle {
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M3 11.2C3 8.4 5 6.6 7.8 6.4 11.4 6.1 20.6 6.1 24.2 6.4 27 6.6 29 8.4 29 11.2v9.6c0 2.8-2 4.6-4.8 4.8-3.6.3-12.8.3-16.4 0C5 25.4 3 23.6 3 20.8z";
fill: @linear-gradient(160deg, #ff3b30 0%, #d90d1d 100%);
}
Path {
width: 100%; height: 100%;
viewbox-width: 32; viewbox-height: 32;
commands: "M13.2 11.6v8.8l7.6-4.4z";
fill: #ffffff;
}
}
if root.icon == "airplay": Rectangle {
Path {
width: 100%; height: 100%;