From ae9158216e27e4f0ddff0541be37046bbbf0fd63 Mon Sep 17 00:00:00 2001 From: Serge Paquet Date: Wed, 14 Sep 2016 10:37:34 -0400 Subject: [PATCH] cmake: Fix OSX fixup_bundle.sh to copy non-system deps Without this fix, the fixup script misses any non-system dependencies that are not in the /Users or /opt directories. Closes jp9000/obs-studio#618 --- cmake/osxbundle/fixup_bundle.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/osxbundle/fixup_bundle.sh b/cmake/osxbundle/fixup_bundle.sh index 456d339ca..513497867 100755 --- a/cmake/osxbundle/fixup_bundle.sh +++ b/cmake/osxbundle/fixup_bundle.sh @@ -9,7 +9,9 @@ cd "$1" function buildlist() { otool -L "$@" | - grep -E "(opt|Users)" | + grep -E '^\s+/' | + grep -vE '^\s+/System/' | + grep -vE '^\s+/usr/lib/' | perl -pe 's|^\s+(/.*)\s\(.*$|$1|' | grep -vE ":$" | sort -u