Skip to content

Commit c987880

Browse files
committed
Copy the libraries from the processing archive to the container
1 parent 6ebd56e commit c987880

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎fetch_processing_jar.sh‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,24 @@ wget -O processing.py-archive "$URL" && tar -xvzf processing.py-archive -C "$TAR
5151
# Find the JAR file and rename it to processing-py.jar while moving it to the target directory
5252
find "$TARGET_DIR" -name 'processing-py.jar' -exec mv {} "$TARGET_DIR/processing-py.jar" \;
5353

54+
# Now, make the libraries available
55+
# Assuming the libraries are directly under the extracted "libraries/processing/" directory
56+
LIB_DIR="$TARGET_DIR/libraries/processing/"
57+
58+
# Check if the libraries directory exists, then move it to the target directory
59+
if [ -d "$LIB_DIR" ]; then
60+
echo "Moving Processing libraries to the target directory"
61+
# Move each library directory to the target directory
62+
# If you prefer them in a specific subdirectory, adjust the target path accordingly
63+
for lib in dxf io net opengl pdf serial video; do
64+
if [ -d "$LIB_DIR/$lib" ]; then
65+
mv "$LIB_DIR/$lib" "$TARGET_DIR/"
66+
echo "Moved $lib library"
67+
fi
68+
done
69+
else
70+
echo "Libraries directory not found: $LIB_DIR"
71+
fi
72+
5473
echo "Listing contents of $TARGET_DIR:"
5574
ls -l "$TARGET_DIR"

0 commit comments

Comments
 (0)