Skip to content

Commit

Permalink
TVB-2417 Add stapling step
Browse files Browse the repository at this point in the history
  • Loading branch information
liadomide committed Jul 27, 2023
1 parent 2d0aeba commit bbe1ca4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tvb_build/conda_env_to_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ def sign_app(app_path=APP_FILE, app_zip_path=os.path.join(OUTPUT_FOLDER, "tvb.zi
_log(f"Submitting for notarization {app_zip_path} ...")
os.system(f"{prefix} xcrun notarytool submit '{app_zip_path}' --keychain-profile 'tvb' "
f"--wait --webhook 'https://example.com/notarization'")
os.system(f"spctl -a -t exec -vv '{app_path}'")
# xcrun notarytool log --keychain-profile "tvb" {ID from submit command: 72c04616-8f6a-401d-94f5-c20d47e35138} errors.txt
# Staple the notarization ticket and inspect status after
os.system(f"xcrun stapler staple '{app_path}'")
os.system(f"spctl -a -t exec -vv '{app_path}'")
os.remove(app_zip_path)


Expand Down

0 comments on commit bbe1ca4

Please sign in to comment.