Files
DigiRadio/Software/tools/gzip-www.sh
micheleandCursor 8d826b4d73 Complete configuration Web UI with tabbed SPA (fw 0.8.2).
Add now-playing view with metadata polling, six-band EQ controls, full REST coverage, companion-chip badges, and gzip-www helper for the embedded setup page.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 07:36:06 +02:00

9 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
# Regenerate the gzipped setup UI embedded by components/net/CMakeLists.txt.
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
SRC="${ROOT}/components/net/www/index.html"
OUT="${ROOT}/components/net/www/index.html.gz"
gzip -c -9 "$SRC" > "$OUT"
echo "Wrote $(wc -c < "$OUT" | tr -d ' ') bytes -> ${OUT#"$ROOT"/}"