Merge pull request #1232 from jagerman/stapling

Add stapling after notarization
pull/1234/head
Jeff 4 years ago committed by GitHub
commit e685d1fcf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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