Spaces:
Build error
Build error
| # Define the Blender version and download URL | |
| BLENDER_VERSION="4.2.0" | |
| BLENDER_TARBALL="blender-${BLENDER_VERSION}-linux-x64.tar.xz" | |
| BLENDER_URL="https://download.blender.org/release/Blender4.2/blender-${BLENDER_VERSION}-linux-x64.tar.xz" | |
| INSTALL_DIR="/opt/blender-${BLENDER_VERSION}-linux-x64" | |
| # Download Blender | |
| wget -O /tmp/${BLENDER_TARBALL} ${BLENDER_URL} | |
| # Extract to /opt | |
| tar -xvf /tmp/${BLENDER_TARBALL} -C /opt | |
| # Create a symbolic link to the Blender executable | |
| ln -s ${INSTALL_DIR}/blender /usr/local/bin/blender | |
| # Clean up the tarball | |
| rm /tmp/${BLENDER_TARBALL} |