Skip to content

Commit

Permalink
Replace altool for notary tool
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Oct 30, 2023
1 parent 80b4351 commit 4fd9e2a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packaging/MacOS/build_macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@ def notarize_file(dist_path: str, filename: str) -> None:
""" Notarize a file. This takes 5+ minutes, there is indication that this step is successful."""
notarize_user = os.environ.get("MAC_NOTARIZE_USER")
notarize_password = os.environ.get("MAC_NOTARIZE_PASS")
altool_executable = os.environ.get("ALTOOL_EXECUTABLE", "altool")
notary_executable = os.environ.get("NOTARY_TOOL_EXECUTABLE", "notarytool")

notarize_arguments = [
"xcrun", altool_executable,
"xcrun", notary_executable,
"--notarize-app",
"--primary-bundle-id", ULTIMAKER_CURA_DOMAIN,
"--username", notarize_user,
"--apple-id", notarize_user,
"--password", notarize_password,
"--file", Path(dist_path, filename)
Path(dist_path, filename)
]

subprocess.run(notarize_arguments)
Expand Down

0 comments on commit 4fd9e2a

Please sign in to comment.