parameters: (target, sign=None, keychain=None)
docstring: Run the codesign command with the arguments.
docstring_summary: Run the codesign command with the arguments.
docstring_tokens: Run the codesign command with the arguments .
function: def Codesign(target, sign=None, keychain=None):
    """Run the codesign command with the arguments."""
  
    sign = (sign or GetIdentifier(""))
    keychain = (keychain or GetKeychain(""))
    if not sign or not keychain:
      return
  
    flags = "--keychain " + os.path.abspath(keychain)
    RunOrDie(" ".join(["/usr/bin/codesign",
                       "-f --verbose",
                       "--deep",  # Recursive signs
                       "--timestamp --options=runtime",  # For notarization
                       "--sign \"%s\"" % sign,
                       flags,
                       target]))
function_tokens: def Codesign ( target , sign = None , keychain = None ) : sign = ( sign or GetIdentifier ( "" ) ) keychain = ( keychain or GetKeychain ( "" ) ) if not sign or not keychain : return flags = "--keychain " + os . path . abspath ( keychain ) RunOrDie ( " " . join ( [ "/usr/bin/codesign" , "-f --verbose" , "--deep" , # Recursive signs "--timestamp --options=runtime" , # For notarization "--sign \"%s\"" % sign , flags , target ] ) )