Skip to content

Commit 182a59b

Browse files
committed
fix(assembler): restored libraries in the artifacts
1 parent 74c697e commit 182a59b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

automation-tools/assembler.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -496,24 +496,18 @@ filter_appimage_libs() {
496496

497497
log i "🔍 Filtering AppImage libraries from: $source_dir" "$logfile"
498498

499-
# Copy all non-lib directories first
499+
# Copy all directories and files, including lib
500500
for item in "$source_dir"/*; do
501-
if [[ -d "$item" && "$(basename "$item")" != "lib" ]]; then
501+
if [[ -d "$item" ]]; then
502502
log d "📁 Copying directory: $(basename "$item")" "$logfile"
503503
cp -rL "$item" "$dest_dir/"
504504
elif [[ -f "$item" ]]; then
505505
log d "📄 Copying file: $(basename "$item")" "$logfile"
506506
cp -L "$item" "$dest_dir/"
507507
fi
508508
done
509-
510-
# Handle lib directory - copy first, then filter
511-
if [[ -d "$source_dir/lib" ]]; then
512-
log i "🔧 Processing lib directory..." "$logfile"
513-
mkdir -p "$dest_dir/lib"
514-
cp -rL "$source_dir/lib/"* "$dest_dir/lib/" 2>/dev/null || true
515-
516-
# Apply unified filtering
509+
# Apply unified filtering only if lib exists
510+
if [[ -d "$dest_dir/lib" ]]; then
517511
filter_critical_system_libraries "$dest_dir/lib" "lib"
518512
fi
519513
}

0 commit comments

Comments
 (0)