Browse Source

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
Serge Paquet 9 years ago
parent
commit
ae9158216e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      cmake/osxbundle/fixup_bundle.sh

+ 3 - 1
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