Add Store support and unsigned app releases

This commit is contained in:
Tamas Csikel
2026-10-25 14:11:49 +01:00
parent 4975784491
commit d7e9fe4568
157 changed files with 22985 additions and 944 deletions

21
apps/steam/app.toml Normal file
View 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"]

View 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 "$@"