@@ -268,13 +268,14 @@ def get_otool_imports(binary: Path):
268
268
return results
269
269
270
270
271
- def install_name_change (binary : Path , old : Path , new : Path ):
272
- print ("Re-linking" , binary , old , new )
273
- return run_process ("install_name_tool" , "-change" , str (old ), str (new ), str (binary ))
271
+ def install_name_change (binary : Path , old : Path , new : Path , capture : bool = True ):
272
+ return run_process ("install_name_tool" , "-change" , str (old ), str (new ), str (binary ), capture = capture )
274
273
275
274
276
- def insert_dylib (binary : Path , path : Path ):
277
- return run_process ("./insert_dylib" , "--inplace" , "--no-strip-codesig" , "--all-yes" , str (path ), str (binary ))
275
+ def insert_dylib (binary : Path , path : Path , capture : bool = True ):
276
+ return run_process (
277
+ "./insert_dylib" , "--inplace" , "--no-strip-codesig" , "--all-yes" , str (path ), str (binary ), capture = capture
278
+ )
278
279
279
280
280
281
def get_binary_map (dir : Path ):
@@ -629,7 +630,7 @@ def inject_tweaks(ipa_dir: Path, tweaks_dir: Path):
629
630
):
630
631
binary_fixed = base_load_path .joinpath (binary_rel )
631
632
print ("Injecting" , binary_path , binary_fixed )
632
- insert_dylib (app_bin , binary_fixed )
633
+ insert_dylib (app_bin , binary_fixed , False )
633
634
634
635
# detect any references to support libs and install missing files
635
636
for binary_path in binary_map .values ():
@@ -657,7 +658,7 @@ def inject_tweaks(ipa_dir: Path, tweaks_dir: Path):
657
658
if link_name in binary_map :
658
659
link_fixed = base_load_path .joinpath (binary_map [link_name ].relative_to (temp_dir ))
659
660
print ("Re-linking" , binary_path , link_path , link_fixed )
660
- install_name_change (binary_path , link_path , link_fixed )
661
+ install_name_change (binary_path , link_path , link_fixed , False )
661
662
662
663
for file in safe_glob (temp_dir , "*" ):
663
664
move_merge_replace (file , base_dir )
0 commit comments