Merge pull request #4754 from Orphis/deploy_mac_fix

macOS: Fix deploy-mac.py which fails when no dylib path has to be cha…
This commit is contained in:
Mat M 2017-01-25 19:16:13 -05:00 committed by GitHub
commit ec9b49436c
1 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,10 @@ def updateMachO(bin, execPath, root):
print('Updating Mach-O id from {} to {}...'.format(oldExecPath, newExecPath))
args.extend(['-id', newExecPath])
args.append(bin)
subprocess.check_call(args)
# Check we actually have to update some paths
if len(args) > 2:
subprocess.check_call(args)
if __name__ == '__main__':
parser = argparse.ArgumentParser()