Files

17 lines
509 B
Bash
Raw Permalink Normal View History

2026-05-22 20:26:11 -04:00
#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
install_dir="${JELLYFIN_WEB_INSTALL_DIR:-${JELLYFIN_WEB_OUTPUT_DIR:-$repo_root/.local/compat/jellyfin-web}}"
version="${JELLYFIN_WEB_VERSION:-}"
source_url="${JELLYFIN_WEB_REPO:-https://github.com/jellyfin/jellyfin-web.git}"
2026-05-22 20:26:11 -04:00
args=(compat-web install --dir "$install_dir" --source "$source_url")
if [[ -n "$version" ]]; then
args+=(--version "$version")
2026-05-22 20:26:11 -04:00
fi
cd "$repo_root"
go run ./cmd/silo/ "${args[@]}"