#!/usr/bin/env bash # Builds the two store release assets into dist/: app.toml and # support.bluefox.netflex-.tar.zst. # # Build on Debian trixie or older (the TV's glibc), with the GStreamer dev # packages (libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev) and # sf-pack from the Fennec SDK: # cargo install --locked --git https://gitea.bluefox.support/fennec/sdk --tag v0.1.0 sf-pack set -euo pipefail cd "$(dirname "$0")" cargo build --release --locked target="${CARGO_TARGET_DIR:-target}" rm -rf pkg dist mkdir -p pkg/bin cp app.toml icon.png pkg/ install -m755 "$target/release/netflex-tv" pkg/bin/netflex-tv sf-pack build pkg dist sf-pack verify dist