#!/usr/bin/env bash # Prints the download URL of the newest stable Blender linux-x64 release tarball. # No official "latest stable" API exists for Blender (only the experimental-builds # API does) so this scrapes the release index — see docs/handoff for background. # Requires: curl. set -euo pipefail cd "$(dirname "$0")" . ./lib.sh base="https://download.blender.org/release/" minor=$(curl -fsSL "$base" | parse_latest_blender_minor) minor_url="${base}Blender${minor}/" file=$(curl -fsSL "$minor_url" | parse_latest_blender_tarball) echo "${minor_url}${file}"