Add Store support and unsigned app releases
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
id = "airplay"
|
||||
name = "AirPlay"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
kind = "exec"
|
||||
category = "Képernyőtükrözés"
|
||||
description = "iPhone, iPad vagy Mac képernyőjének tükrözése. A Vezérlőközpontban válaszd a SmartFoxot."
|
||||
exec = ["uxplay", "-n", "SmartFox", "-nh", "-vs", "waylandsink"]
|
||||
description = "iPhone, iPad vagy Mac képernyője a TV-n. A Vezérlőközpontban koppints a Képernyőtükrözésre, és válaszd a Fennec OS-t."
|
||||
# Always running (sf-core keeps it up); its window appears when an Apple
|
||||
# device starts mirroring and closes when it stops.
|
||||
service = true
|
||||
exec = ["uxplay", "-n", "Fennec OS", "-nh", "-vs", "waylandsink", "-fs"]
|
||||
icon = "airplay"
|
||||
accent = "#4DA3FF"
|
||||
palette = ["#7cc4ff", "#1d4fa8", "#050c1c"]
|
||||
order = 30
|
||||
|
||||
# A system receiver: needs the host D-Bus (Avahi, iwd) and the network
|
||||
# stack as it is, so it runs outside the app sandbox. Only official apps
|
||||
# may do this; store apps always run sandboxed.
|
||||
[sandbox]
|
||||
enabled = false
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
id = "miracast"
|
||||
name = "Miracast"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
kind = "exec"
|
||||
category = "Képernyőtükrözés · Kísérleti"
|
||||
description = "Android telefon képernyőjének tükrözése Wi-Fi Directen keresztül."
|
||||
exec = ["sf-miracast-sink"]
|
||||
description = "Android telefon képernyője a TV-n. A telefonon a Képernyő tükrözése vagy Smart View menüben válaszd a Fennec OS-t."
|
||||
# Always running: sf-miracast registers the TV as a Wi-Fi Display sink with
|
||||
# iwd and plays the stream with GStreamer when a phone connects.
|
||||
service = true
|
||||
exec = ["sf-shell-exec", "sf-miracast", "--name", "Fennec OS"]
|
||||
icon = "miracast"
|
||||
accent = "#2FE0C0"
|
||||
palette = ["#6ff5dc", "#0f7a6c", "#03130f"]
|
||||
order = 40
|
||||
|
||||
# A system receiver: needs the host D-Bus (Avahi, iwd) and the network
|
||||
# stack as it is, so it runs outside the app sandbox. Only official apps
|
||||
# may do this; store apps always run sandboxed.
|
||||
[sandbox]
|
||||
enabled = false
|
||||
|
||||
@@ -12,4 +12,4 @@ order = 10
|
||||
|
||||
[web]
|
||||
# "SMART-TV" turns on the Netflex 10-foot UI (see packages/client/src/remote.ts → isTv).
|
||||
user_agent_suffix = "SMART-TV SmartFox/0.1"
|
||||
user_agent_suffix = "SMART-TV FennecOS/0.1"
|
||||
|
||||
21
apps/steam/app.toml
Normal file
21
apps/steam/app.toml
Normal file
@@ -0,0 +1,21 @@
|
||||
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"]
|
||||
24
apps/steam/bin/smartfox-steam
Normal file
24
apps/steam/bin/smartfox-steam
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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 "$@"
|
||||
10
apps/store/app.toml
Normal file
10
apps/store/app.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
id = "store"
|
||||
name = "App Store"
|
||||
version = "1.0.0"
|
||||
kind = "builtin"
|
||||
category = "Rendszer"
|
||||
description = "Nyílt forrású appok GitHubról, Giteáról és GitLabról. Mindegyik a saját repójából települ, és a saját sandboxában fut."
|
||||
icon = "store"
|
||||
accent = "#5FA8FF"
|
||||
palette = ["#8cc4ff", "#24508f", "#050a14"]
|
||||
order = 80
|
||||
@@ -12,7 +12,7 @@ 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 (SmartFox, SF1, Wired)"
|
||||
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