qt6: use isELF and isMachO in wrapQtAppsHook (#395556)
This commit is contained in:
@@ -81,6 +81,9 @@ if [[ -z "${__nix_wrapQtAppsHook-}" ]]; then
|
||||
[ -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"
|
||||
|
||||
Reference in New Issue
Block a user