blender-tools/blender/scripts/build.sh

12 lines
358 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
blender_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
repo_root="$(cd "$blender_root/.." && pwd)"
blender_bin="${BLENDER_BIN:-blender}"
mkdir -p "$repo_root/dist"
"$blender_bin" --factory-startup --command extension build \
--source-dir "$blender_root/material_id_baker" \
--output-dir "$repo_root/dist"