scripts/resolve-blender-url.sh, resolve-godot-version.sh, and test-lib.sh were committed as mode 644 (Windows checkouts don't preserve the git exec bit, and it was never set). publish.yml invokes the first two as ./scripts/resolve-*.sh, which needs it — the runner failed with "Permission denied". lib.sh stays 644, it's only sourced. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
16 lines
566 B
Bash
Executable File
16 lines
566 B
Bash
Executable File
#!/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}"
|