From a64e7d14501dc6f1e1bbbf5890aa8c2ffaad17df Mon Sep 17 00:00:00 2001 From: KhooLy <73142442+KhooLy@users.noreply.github.com> Date: Sun, 26 Jul 2026 19:03:10 +0300 Subject: [PATCH] Fix macOS libmpv portability check --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 616224a..55f2810 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -179,7 +179,7 @@ jobs: echo "$architectures" | grep -qw x86_64 for architecture in arm64 x86_64; do otool -arch "$architecture" -L "$dylib" - if otool -arch "$architecture" -L "$dylib" | grep -Eq '^[[:space:]]+(@rpath/|/opt/homebrew/|/usr/local/)'; then + if otool -arch "$architecture" -L "$dylib" | tail -n +3 | grep -Eq '^[[:space:]]+(@rpath/|/opt/homebrew/|/usr/local/)'; then echo "non-portable dependency found in $dylib ($architecture)" >&2 exit 1 fi @@ -223,7 +223,7 @@ jobs: echo "$architectures" | grep -qw arm64 echo "$architectures" | grep -qw x86_64 for architecture in arm64 x86_64; do - if otool -arch "$architecture" -L "$dylib" | grep -Eq '^[[:space:]]+(@rpath/|/opt/homebrew/|/usr/local/)'; then + if otool -arch "$architecture" -L "$dylib" | tail -n +3 | grep -Eq '^[[:space:]]+(@rpath/|/opt/homebrew/|/usr/local/)'; then echo "non-portable dependency found in $dylib ($architecture)" >&2 exit 1 fi