Skip to content

Commit

Permalink
macOS: fix signature for bundled libraries after removing rpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsp authored and adrianinsaval committed Dec 11, 2023
1 parent cdca748 commit 8f8729e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conda/scripts/fix_rpaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_lc_paths(output):

def remove_rpath(file_path, rpath):
subprocess.run(['install_name_tool', '-delete_rpath', rpath, file_path])
subprocess.run(['codesign', '--force', '--sign', '-', file_path])
print(f'\nRemoved rpath {rpath} from {file_path}')

def scan_directory(directory, recursive=False):
Expand Down

0 comments on commit 8f8729e

Please sign in to comment.