#!/usr/bin/env bash # Copyright (C) 2026 Zaher Salman # SPDX-License-Identifier: GPL-3.0-or-later # # Build a plain runtime download, independent of RPM, FUSE, or administrator # access. The desktop installer will consume its JSON descriptor in a later step. set -euo pipefail here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" root="$(cd "$here/../.." && pwd)" runtime_dir="${RUNTIME_DIR:-$root/runtime}" out_dir="${OUT_DIR:-$root/dist}/runtime-downloads" arguments=("$runtime_dir" "$out_dir") if [ -n "${ARCH:-}" ]; then arguments+=(--arch "$ARCH") fi exec python3 "$here/build-runtime-archive.py" "${arguments[@]}"