ommp.git

ommp

~ Oh My Music Player — a standalone terminal music player built with Rust and ratatui
git clone https://github.com/debuman/ommp.git
commit 47ab1a509bebdb9bf944215d73aacb89bf5be6be
parent a1f1b09da51f16ff9ac87619d8205ec96b78b1df
Author: sqzer-x <110329244+sqzer-x@users.noreply.github.com>
Date: Sat, 1 Aug 2026 19:26:00 +0900

Trim the page title and script the deploy

The title concatenated the site description, which already repeats in the
meta tag. deploy.sh does the build, the doctor run and the gh-pages mirror in
one step so the branch never drifts from site/.

Diffstat:
Msite/templates/landing.html | 2+-
Asite/tools/deploy.sh | 33+++++++++++++++++++++++++++++++++
2 files changed, 34 insertion(+), 1 deletion(-)

diff --git a/site/templates/landing.html b/site/templates/landing.html
@@ -4,7 +4,7 @@
 <head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
-<title>{{ site.title }} — {{ site.description }}</title>
+<title>ommp — a terminal music player</title>
 <meta name="description" content="{{ page.description }}">
 <meta name="color-scheme" content="dark">
 <meta name="theme-color" content="#0A051E">
diff --git a/site/tools/deploy.sh b/site/tools/deploy.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+# Build the landing page and publish it to the gh-pages branch.
+#
+# gh-pages holds only the built output and shares no history with main; the
+# source is site/ on main. Requires sqzass on PATH (yay -S sqzass, or
+# cargo install --git https://github.com/sqzer-x/sqzass).
+set -euo pipefail
+
+REPO=$(git rev-parse --show-toplevel)
+WORK=${WORK:-"${TMPDIR:-/tmp}/ommp-ghpages"}
+
+command -v sqzass >/dev/null || { echo "sqzass not found on PATH" >&2; exit 1; }
+
+sqzass build -i "$REPO/site"
+sqzass doctor -i "$REPO/site"
+
+git -C "$REPO" worktree remove "$WORK" --force 2>/dev/null || true
+rm -rf "$WORK"
+git -C "$REPO" fetch origin gh-pages
+git -C "$REPO" worktree add "$WORK" gh-pages
+
+# Mirror rather than merge: files deleted from the site must disappear here too.
+rsync -a --delete --exclude '.git' "$REPO/site/public/" "$WORK/"
+
+git -C "$WORK" add -A
+if git -C "$WORK" diff --cached --quiet; then
+  echo "nothing changed"
+else
+  git -C "$WORK" commit -q -m "Deploy the landing page"
+  git -C "$WORK" push origin gh-pages
+  echo "published → https://sqzer-x.github.io/ommp/"
+fi
+git -C "$REPO" worktree remove "$WORK" --force