From 49b8f08dda8ffff79607659508900e336394e45e Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Tue, 23 Dec 2025 19:00:01 +0100 Subject: [PATCH] fixup --- .ci/thin_macos_qtlib.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/thin_macos_qtlib.sh b/.ci/thin_macos_qtlib.sh index c4010e069..91b364149 100755 --- a/.ci/thin_macos_qtlib.sh +++ b/.ci/thin_macos_qtlib.sh @@ -9,14 +9,15 @@ arch=$(uname -m) nproc=$(sysctl -n hw.ncpu) function thin() { - local libfile=$0 - if file -b --mime-type "$libfile" | grep -q "application/x-mach-binary"; then + local libfile=$1 + if [[ $(file -b --mime-type "$libfile") == application/x-mach-binary ]]; then echo "Processing $libfile" lipo "$libfile" -thin "$arch" -output "$libfile" fi return 0 } export -f thin # export to allow use in xargs +export arch echo "::group::Thinning Qt libraries to $arch using $nproc cores" find "$GITHUB_WORKSPACE/Qt" -type f -print0 | xargs -0 -n1 -P"$nproc" -I{} bash -c "thin '{}'"