mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Tools: Collapse install_name_tool calls in deploy-mac
This commit is contained in:
parent
14dbe7e6db
commit
a96759d9e9
@ -108,16 +108,19 @@ def updateMachO(bin, execPath, root):
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user