Spaces:
Build error
Build error
Create setup_blender.sh
Browse files- setup_blender.sh +19 -0
setup_blender.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Define the Blender version and download URL
|
| 4 |
+
BLENDER_VERSION="4.2.0"
|
| 5 |
+
BLENDER_TARBALL="blender-${BLENDER_VERSION}-linux-x64.tar.xz"
|
| 6 |
+
BLENDER_URL="https://download.blender.org/release/Blender4.2/blender-${BLENDER_VERSION}-linux-x64.tar.xz"
|
| 7 |
+
INSTALL_DIR="/opt/blender-${BLENDER_VERSION}-linux-x64"
|
| 8 |
+
|
| 9 |
+
# Download Blender
|
| 10 |
+
wget -O /tmp/${BLENDER_TARBALL} ${BLENDER_URL}
|
| 11 |
+
|
| 12 |
+
# Extract to /opt
|
| 13 |
+
tar -xvf /tmp/${BLENDER_TARBALL} -C /opt
|
| 14 |
+
|
| 15 |
+
# Create a symbolic link to the Blender executable
|
| 16 |
+
ln -s ${INSTALL_DIR}/blender /usr/local/bin/blender
|
| 17 |
+
|
| 18 |
+
# Clean up the tarball
|
| 19 |
+
rm /tmp/${BLENDER_TARBALL}
|