Build a validated runtime snapshot into a reproducible tar.gz archive, JSON download descriptor, and SHA-256 sidecar. Publish complete content-addressed bundles without overwriting prior downloads and retain portable links and executable permissions. Include the download format in Linux release commands, document user-local offline use, and cover archive checksums, extraction, repeat builds, support-file changes, and failure preservation. The app's runtime selection and fitting paths remain unchanged.
18 lines
625 B
Bash
Executable File
18 lines
625 B
Bash
Executable File
#!/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[@]}"
|