2026-05-22 20:26:11 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
2026-06-15 06:34:08 -07:00
|
|
|
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
|
|
|
|
2026-06-15 06:34:08 -07: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
|
|
|
|
|
|
2026-06-15 06:34:08 -07:00
|
|
|
cd "$repo_root"
|
|
|
|
|
go run ./cmd/silo/ "${args[@]}"
|