mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Replace altool for notary tool
CURA-9929
This commit is contained in:
parent
80b4351372
commit
540c8399e7
1 changed files with 7 additions and 6 deletions
|
@ -87,15 +87,16 @@ 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 a file. This takes 5+ minutes, there is indication that this step is successful."""
|
||||||
notarize_user = os.environ.get("MAC_NOTARIZE_USER")
|
notarize_user = os.environ.get("MAC_NOTARIZE_USER")
|
||||||
notarize_password = os.environ.get("MAC_NOTARIZE_PASS")
|
notarize_password = os.environ.get("MAC_NOTARIZE_PASS")
|
||||||
altool_executable = os.environ.get("ALTOOL_EXECUTABLE", "altool")
|
notarize_team = os.environ.get("MACOS_CERT_USER")
|
||||||
|
notary_executable = os.environ.get("NOTARY_TOOL_EXECUTABLE", "notarytool")
|
||||||
|
|
||||||
notarize_arguments = [
|
notarize_arguments = [
|
||||||
"xcrun", altool_executable,
|
"xcrun", notary_executable,
|
||||||
"--notarize-app",
|
"submit",
|
||||||
"--primary-bundle-id", ULTIMAKER_CURA_DOMAIN,
|
"--apple-id", notarize_user,
|
||||||
"--username", notarize_user,
|
|
||||||
"--password", notarize_password,
|
"--password", notarize_password,
|
||||||
"--file", Path(dist_path, filename)
|
"--team-id", notarize_team,
|
||||||
|
Path(dist_path, filename)
|
||||||
]
|
]
|
||||||
|
|
||||||
subprocess.run(notarize_arguments)
|
subprocess.run(notarize_arguments)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue