Add stapling after notarization

pull/1232/head
Jason Rhinelander 4 years ago
parent edc0d1a3ed
commit 4a0ee5c66f

@ -67,4 +67,10 @@ while not done:
print("\033[1K\r(+{:d}m{:02d}s) {}: {}".format(mins, secs, st, status), end='', flush=True)
print("\n")
sys.exit(0 if success else 42)
if not success:
sys.exit(42)
print("Stapling {}".format(pkg))
result = subprocess.run(['xcrun', 'stapler', 'staple', pkg])
result.check_returncode()

Loading…
Cancel
Save