Tools: Collapse install_name_tool calls in deploy-mac Change suggested in Dolphin PR #2536
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Jun 2015 12:54:46 -0700
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
tools/deploy-mac.py
→
tools/deploy-mac.py
@@ -108,16 +108,19 @@ if not qtPath and 'Qt' in oldPath:
qtPath = findQtPath(oldPath) if verbose: print('Found Qt path at {}.'.format(qtPath)) + args = [installNameTool] for path, oldExecPath, newExecPath in toUpdate: if path != bin: updateMachO(path, execPath, root) if verbose: print('Updating Mach-O load from {} to {}...'.format(oldExecPath, newExecPath)) - subprocess.check_call([installNameTool, '-change', oldExecPath, newExecPath, bin]) + args.extend(['-change', oldExecPath, newExecPath]) else: if verbose: print('Updating Mach-O id from {} to {}...'.format(oldExecPath, newExecPath)) - subprocess.check_call([installNameTool, '-id', newExecPath, bin]) + args.extend(['-id', newExecPath]) + args.append(bin) + subprocess.check_call(args) if __name__ == '__main__': parser = argparse.ArgumentParser()