Files
ZebraticandClaude Opus 5.5 7dc52a4a2e Launcher: splash intro, new icon set, consoles, Lutris, Steam accounts, overlay
- Splash: Summit's icon rises in over an amber glow, the name follows, then it
  fades into the app (about a second, no keys taken, off when motion is off)
- install.sh: after installing icons, rebuild KDE's sycoca and send
  KIconLoader.iconChanged so a running Plasma shows the updated icon
- New app icon (SVG + rendered PNG sizes, render.sh), used by the packages and
  the engine's window
- Lutris scan, consoles (Remote Play via chiaki-ng frame tap, capture cards),
  Steam account switching, running-game tracking, window mode, artwork
- Library UI: add dialog, profile editor, accounts, "now playing" screen
- Engine: in-game overlay/HUD, overlay key, global key fixes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 01:53:49 +01:00

47 lines
1.7 KiB
Bash
Executable File

#!/bin/sh
# Build a .deb for Summit using a plain debian-package staging tree (no
# cargo-deb required, just cargo, dpkg-deb and fakeroot/root).
#
# Usage: packaging/deb/build.sh [output-dir]
#
# Must be run from the repository root, after `cargo build --release`
# has produced target/release/summit and target/release/summit-gui.
set -eu
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
OUT_DIR="${1:-$REPO_ROOT/target/debian}"
VERSION="$(grep -m1 '^version' "$REPO_ROOT/Cargo.toml" | sed -E 's/.*"(.*)".*/\1/')"
STAGE="$(mktemp -d)"
trap 'rm -rf "$STAGE"' EXIT
cd "$REPO_ROOT"
if [ ! -x target/release/summit ] || [ ! -x target/release/summit-gui ]; then
echo "building release binaries..." >&2
cargo build --release -p summit -p summit-gui
fi
chmod 755 "$STAGE"
mkdir -p "$STAGE/DEBIAN"
sed "s/^Version:.*/Version: $VERSION/" packaging/deb/control > "$STAGE/DEBIAN/control"
install -Dm755 target/release/summit "$STAGE/usr/bin/summit"
install -Dm755 target/release/summit-gui "$STAGE/usr/bin/summit-gui"
install -d "$STAGE/usr/share/summit/engine"
cp -r engine/. "$STAGE/usr/share/summit/engine/"
find "$STAGE/usr/share/summit/engine" -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true
install -Dm644 packaging/summit.desktop "$STAGE/usr/share/applications/summit.desktop"
for n in 16 24 32 48 64 128 256 512; do
install -Dm644 "packaging/icons/summit-$n.png" "$STAGE/usr/share/icons/hicolor/${n}x$n/apps/summit.png"
done
install -Dm644 packaging/icons/summit.svg "$STAGE/usr/share/icons/hicolor/scalable/apps/summit.svg"
install -Dm644 LICENSE "$STAGE/usr/share/doc/summit/LICENSE"
mkdir -p "$OUT_DIR"
OUT_FILE="$OUT_DIR/summit_${VERSION}_amd64.deb"
dpkg-deb --build --root-owner-group "$STAGE" "$OUT_FILE"
echo "built: $OUT_FILE"