REfactoring to work with blender 5.1.x
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
OUTDIR="$1"
|
||||
SEARCH_PREFIX="/opt/blender/lib/linux_x64"
|
||||
|
||||
if [ -z "$OUTDIR" ]; then
|
||||
echo "Usage: $0 <dossier_sortie>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Libs dont la version dans apt est trop ancienne pour Blender 5.x
|
||||
NEEDED_PREFIXES=(
|
||||
"libOpenColorIO" # apt=2.1 besoin=2.5
|
||||
"libOpenImageIO" # apt=2.4 besoin=3.1
|
||||
"libOpenImageIO_Util"
|
||||
"libopenvdb" # apt=10 besoin=13
|
||||
"libosdCPU" # apt=3.5 besoin=3.7
|
||||
"libosdGPU" # apt=3.5 besoin=3.7
|
||||
"libOpenEXR" # pas dispo en bonne version
|
||||
"libIex"
|
||||
"libImath"
|
||||
"libusd" # pas dans apt
|
||||
"libceres" # pas dans apt
|
||||
"liboslcomp" # pas dans apt
|
||||
"liboslexec" # pas dans apt
|
||||
"liboslquery" # pas dans apt
|
||||
"libMaterialX" # pas dans apt
|
||||
"libembree4" # à vérifier
|
||||
)
|
||||
|
||||
mkdir -p "$OUTDIR"
|
||||
|
||||
echo "=== Collecte des libs Blender spécifiques ==="
|
||||
|
||||
for prefix in "${NEEDED_PREFIXES[@]}"; do
|
||||
find "$SEARCH_PREFIX" \
|
||||
-name "${prefix}*" \
|
||||
-not -type d \
|
||||
-exec cp -Pn {} "$OUTDIR/" \; 2>/dev/null || true
|
||||
done
|
||||
|
||||
echo "Fichiers collectés : $(ls "$OUTDIR" | wc -l)"
|
||||
du -sh "$OUTDIR"
|
||||
Reference in New Issue
Block a user