qt6: use isELF and isMachO in wrapQtAppsHook (#395556)

K900 a0e27f4a 76e756ec

Changed files
+3
pkgs
development
libraries
+3
pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh
···
[ -d "$targetDir" ] || continue
find "$targetDir" ! -type d -executable -print0 | while IFS= read -r -d '' file; do
+
# Skip the file if it is not a binary (ELF or Mach-O)
+
isELF "$file" || isMachO "$file" || continue
+
if [ -h "$file" ]; then
target="$(readlink -e "$file")"
echo "wrapping $file -> $target"