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:
@@ -1,15 +0,0 @@
|
||||
id = "netflex"
|
||||
name = "Netflex"
|
||||
version = "1.0.0"
|
||||
kind = "web"
|
||||
category = "Saját streaming"
|
||||
description = "Filmek, sorozatok és anime a saját szerveredről. Válaszd ki, és már nézheted is, miközben töltődik."
|
||||
url = "${settings.netflex_server}/"
|
||||
icon = "netflex"
|
||||
accent = "#E50914"
|
||||
palette = ["#ff4a3d", "#8c0b14", "#120305"]
|
||||
order = 10
|
||||
|
||||
[web]
|
||||
# "SMART-TV" turns on the Netflex 10-foot UI (see packages/client/src/remote.ts → isTv).
|
||||
user_agent_suffix = "SMART-TV FennecOS/0.1"
|
||||
@@ -1,21 +0,0 @@
|
||||
id = "steam"
|
||||
name = "Steam"
|
||||
# Set by tools/pkg/steam/package.sh to the official steam-launcher version:
|
||||
# the package (sf-app-steam) is rebuilt whenever Valve releases a new one.
|
||||
version = "0.0.0"
|
||||
kind = "exec"
|
||||
category = "Játékok"
|
||||
description = "A hivatalos Steam kliens, kontrollerrel kezelhető Big Picture felülettel. Az első indításkor letölti magát, ez néhány percig tart."
|
||||
# gamescope (Valve's own compositor, as on the Steam Deck) hosts the X11
|
||||
# Steam client and the games, and scales them to the TV.
|
||||
exec = ["bin/smartfox-steam"]
|
||||
icon = "steam"
|
||||
accent = "#66C0F4"
|
||||
palette = ["#66c0f4", "#1b4f7a", "#060b12"]
|
||||
order = 25
|
||||
|
||||
[sandbox]
|
||||
# Steam runs its games in its own container (pressure-vessel), nested in
|
||||
# this sandbox. Its data, games included, are in the app's data folder
|
||||
# (~/.local/share/smartfox/apps/steam).
|
||||
permissions = ["network", "gpu", "audio", "gamepad", "dbus-session"]
|
||||
@@ -1,24 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Starts the official Steam client (steam/, from Valve's steam-launcher
|
||||
# package) in its gamepad UI, inside gamescope: the client and the games are
|
||||
# X11 programs, gamescope gives them an X server and shows them as one
|
||||
# Wayland window on the TV.
|
||||
#
|
||||
# Output: the TV's current mode. Games render at most at 1080p (an N100 can't
|
||||
# do 4K) and gamescope scales them up.
|
||||
APP="${SMARTFOX_APP_DIR:-$(cd "$(dirname "$0")/.." && pwd)}"
|
||||
|
||||
mode=$(wlr-randr 2>/dev/null | awk '/current/ {print $1; exit}')
|
||||
W=${mode%x*}
|
||||
H=${mode#*x}
|
||||
case "$W:$H" in
|
||||
*[!0-9:]* | :* | *:) W=1920 H=1080 ;;
|
||||
esac
|
||||
GW=$W GH=$H
|
||||
if [ "$H" -gt 1080 ]; then
|
||||
GW=$((W * 1080 / H))
|
||||
GH=1080
|
||||
fi
|
||||
|
||||
GAMESCOPE=$(command -v gamescope || echo /usr/games/gamescope)
|
||||
exec "$GAMESCOPE" -e -f -W "$W" -H "$H" -w "$GW" -h "$GH" -- "$APP/steam/steam" -gamepadui "$@"
|
||||
@@ -1,18 +0,0 @@
|
||||
id = "youtube"
|
||||
name = "YouTube"
|
||||
version = "1.0.0"
|
||||
kind = "web"
|
||||
category = "Videó · Castolható"
|
||||
description = "A YouTube TV-s felülete. Telefonról a YouTube appban a cast ikonnal küldhetsz ide videót."
|
||||
url = "https://www.youtube.com/tv"
|
||||
icon = "youtube"
|
||||
accent = "#FF2D2D"
|
||||
palette = ["#ff6a5c", "#a3121c", "#16070a"]
|
||||
order = 20
|
||||
|
||||
[web]
|
||||
# A Cobalt (TV) user agent makes YouTube serve its leanback UI.
|
||||
user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0 Safari/537.36 Cobalt/25.lts.30.1034943-gold (unlike Gecko), Unknown_TV_Unknown_0/Unknown (Fennec OS, SF1, Wired)"
|
||||
|
||||
[dial]
|
||||
name = "YouTube"
|
||||
Reference in New Issue
Block a user