MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / sign_and_notarize

Function sign_and_notarize

scripts/build.py:360–373  ·  view source on GitHub ↗

Signs an executable with CD Signer, and verifies it with Apple notary service. Returns: The path to the signed executable.

(signing_data: CdSigningData, chat_path: pathlib.Path)

Source from the content-addressed store, hash-verified

358
359
360def sign_and_notarize(signing_data: CdSigningData, chat_path: pathlib.Path) -> pathlib.Path:
361 """
362 Signs an executable with CD Signer, and verifies it with Apple notary service.
363
364 Returns:
365 The path to the signed executable.
366 """
367 # First, sign the application
368 chat_path = sign_executable(signing_data, chat_path)
369
370 # Next, notarize the application
371 notarize_executable(signing_data, chat_path)
372
373 return chat_path
374
375
376def build_macos(chat_path: pathlib.Path, signing_data: CdSigningData | None):

Callers 1

build_macosFunction · 0.85

Calls 2

sign_executableFunction · 0.85
notarize_executableFunction · 0.85

Tested by

no test coverage detected