@@ -25,7 +25,7 @@ def fix_rpath(PATH):
25
25
relative_path = os .path .relpath (root , PATH )
26
26
27
27
# Skip common file extensions (speed things up)
28
- if os .path .splitext (file_path )[- 1 ] in non_executables or basename .startswith ("." ):
28
+ if os .path .splitext (file_path )[- 1 ] in non_executables or basename .startswith ("." ) or "profiles" in file_path :
29
29
continue
30
30
31
31
# Build exe path (relative from the app dir)
@@ -35,15 +35,14 @@ def fix_rpath(PATH):
35
35
36
36
# Change ID path of library files
37
37
# Sometimes, the ID has an absolute path or invalid @rpath embedded in it, which breaks our frozen exe
38
- print ( "ID: %s: install_name_tool %s -id %s" % ( basename , file_path , executable_path ))
39
- call ([ "install_name_tool" , file_path , "-id" , executable_path ] )
38
+ call ([ " install_name_tool" , file_path , " -id" , executable_path ],
39
+ stdout = subprocess . STDOUT , stderr = subprocess . DEVNUL )
40
40
41
41
# Loop through all dependencies of each library/executable
42
42
raw_output = subprocess .Popen (["oTool" , "-L" , file_path ], stdout = subprocess .PIPE ).communicate ()[0 ].decode ('utf-8' )
43
43
for output in raw_output .split ("\n " )[1 :- 1 ]:
44
44
if output and "is not an object file" not in output and ".o):" not in output :
45
45
dependency_path = output .split ('\t ' )[1 ].split (' ' )[0 ]
46
- dependency_version = output .split ('\t ' )[1 ].split (' (' )[1 ].replace (')' , '' )
47
46
dependency_base_path , dependency_name = os .path .split (dependency_path )
48
47
49
48
# If @rpath or /usr/local found in dependency path, update with @executable_path instead
@@ -52,8 +51,8 @@ def fix_rpath(PATH):
52
51
if not os .path .exists (os .path .join (PATH , dependency_name )):
53
52
print ("ERROR: /usr/local PATH not found in EXE folder: %s" % dependency_path )
54
53
else :
55
- print ( '-- Dependency: %s: install_name_tool "%s" -change "%s" "%s"' % ( dependency_name , file_path , dependency_path , dependency_exe_path ))
56
- call ([ "install_name_tool" , file_path , "-change" , dependency_path , dependency_exe_path ] )
54
+ call ([ " install_name_tool" , file_path , " -change" , dependency_path , dependency_exe_path ],
55
+ stdout = subprocess . STDOUT , stderr = subprocess . DEVNUL )
57
56
58
57
59
58
def print_min_versions (PATH ):
0 commit comments