flamenco-env/setup/setup.sh

28 lines
867 B
Bash
Raw Normal View History

2024-08-31 11:06:27 -04:00
TARBALL=$2
DIRECTORY="workspace/${TARBALL%.tar.xz}"
BINARY=$DIRECTORY/blender
SCRIPTS=$(pwd)/setup
2024-08-31 11:29:22 -04:00
HOST=$3
echo $TARBALL - $DIRECTORY - $BINARY - $SCRIPTS - $HOST
2024-08-29 17:39:20 -04:00
2024-08-31 11:06:27 -04:00
# Create directory for writing
mkdir -p workspace/
# Ensure blender workspace does not exist
rm -rf workspace/$DIRECTORY/
# Download blender from URL and write it to workspacem and extract the tarball
wget https://download.blender.org/release/$1/$TARBALL -O workspace/$TARBALL
2024-08-31 11:29:22 -04:00
echo "Extracting $TARBALL..."
2024-08-31 11:06:27 -04:00
tar -xf workspace/$TARBALL -C workspace/
2024-08-31 11:29:22 -04:00
# Export binary location
2024-08-31 11:06:27 -04:00
export blender=workspace/$BINARY
echo | whereis blender
2024-08-31 11:29:22 -04:00
# Download the extension from Flamenco and install it
wget $HOST/flamenco-addon.zip -O workspace/flamenco-addon.zip
blender --command extension install-file -r user_default -e workspace/flamenco-addon.zip
# Finally, perform setup scripts
2024-08-31 11:06:27 -04:00
blender -b -P $SCRIPTS/setup.py