File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments