diff --git a/build.sh b/build.sh index 23c4365..4018f55 100755 --- a/build.sh +++ b/build.sh @@ -147,6 +147,15 @@ build_releases_index() { .rel-versions a { margin-right: 0.5rem; color: var(--color-text); text-decoration: none; padding: 0.1rem 0.4rem; border-radius: 4px; } .rel-versions a:hover { background: var(--color-bg-subtle); text-decoration: underline; } .rel-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.5rem; } + .rel-bin-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.9rem; } + .rel-bin-table th, .rel-bin-table td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--color-border); } + .rel-bin-table th { font-weight: 600; color: var(--color-text-muted); } + .rel-bin-table td.ch-stable { color: var(--color-primary); font-weight: 600; } + .rel-bin-table td.ch-beta, .rel-bin-table td.ch-alpha { color: var(--color-text-muted); } + .rel-bin-table a { color: var(--color-text); text-decoration: none; padding: 0.1rem 0.35rem; border-radius: 4px; } + .rel-bin-table a:hover { background: var(--color-bg-subtle); text-decoration: underline; } + .rel-bin-table td.empty { color: var(--color-text-muted); font-style: italic; } + .rel-pull { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; background: var(--color-bg-subtle); padding: 0.25rem 0.5rem; border-radius: 4px; display: inline-block; margin: 0.2rem 0; }
@@ -201,6 +210,88 @@ HEAD fi printf ' \n' done + # zddc-server section — different artifact shape than the HTML tools. + # Two artifact families: + # 1. Downloadable binaries at website/releases/zddc-server-Go HTTP file server with ACL, .archive index, and a delegated-admin .zddc editor. Distributed as a container image (preferred) or a standalone binary.
\n' + + # Binaries table. + _platforms="linux-amd64 darwin-amd64 darwin-arm64 windows-amd64" + _have_any_bin=0 + for _ch in stable beta alpha; do + for _p in $_platforms; do + _ext=""; case "$_p" in windows-*) _ext=".exe" ;; esac + if [ -f "$RELEASES_DIR/zddc-server-${_p}-${_ch}${_ext}" ]; then + _have_any_bin=1; break 2 + fi + done + done + if [ "$_have_any_bin" = "1" ]; then + printf '| Channel | ' + for _p in $_platforms; do printf '%s | ' "$_p"; done + printf '|
|---|---|---|
| %s | ' "$_ch" "$_ch" + for _p in $_platforms; do + _ext=""; case "$_p" in windows-*) _ext=".exe" ;; esac + _f="zddc-server-${_p}-${_ch}${_ext}" + if [ -f "$RELEASES_DIR/$_f" ]; then + printf 'download | ' "$_f" + else + printf '— | ' + fi + done + printf '
Pull from codeberg.org/varasys/zddc-server:
\n' + printf ' \n' + printf 'podman pull codeberg.org/varasys/zddc-server:stable\n'
+
+ # Recent zddc-server tags from git: clean stables first (top), then
+ # the most recent pre-releases. Dropping older pre-releases keeps the
+ # list readable since alpha/beta cuts proliferate.
+ _server_stables=$(git -C "$SCRIPT_DIR" tag --list 'zddc-server-v*' 2>/dev/null \
+ | grep -E '^zddc-server-v[0-9]+\.[0-9]+\.[0-9]+$' \
+ | sed 's|^zddc-server-v||' \
+ | sort -V -r)
+ _server_prereleases=$(git -C "$SCRIPT_DIR" tag --list 'zddc-server-v*' 2>/dev/null \
+ | grep -E '^zddc-server-v[0-9]+\.[0-9]+\.[0-9]+-' \
+ | sed 's|^zddc-server-v||' \
+ | sort -V -r \
+ | head -10)
+ if [ -n "$_server_stables" ] || [ -n "$_server_prereleases" ]; then
+ printf ' Go HTTP file server with ACL, .archive index, and a delegated-admin .zddc editor. Distributed as a container image (preferred) or a standalone binary.
+| Channel | linux-amd64 | darwin-amd64 | darwin-arm64 | windows-amd64 |
|---|---|---|---|---|
| stable | — | — | — | — |
| beta | — | — | — | — |
| alpha | download | download | download | download |
Pull from codeberg.org/varasys/zddc-server:
+ +podman pull codeberg.org/varasys/zddc-server:stable
+ Append ?v=alpha, ?v=beta, ?v=stable, or ?v=0.0.1 to any deployment URL to switch versions for a single request — see the home page.