1
0

read_codesign_pass 798 B

123456789101112131415161718192021222324
  1. autoload -Uz read_codesign read_codesign_user log_info log_warning
  2. if (( ! ${+CODESIGN_IDENT} )) {
  3. read_codesign
  4. }
  5. if (( ! ${+CODESIGN_IDENT_USER} )) {
  6. read_codesign_user
  7. }
  8. log_info 'Setting up password for notarization keychain...'
  9. if (( ! ${+CODESIGN_IDENT_PASS} )) {
  10. read -s CODESIGN_IDENT_PASS'?Apple Developer ID password: '
  11. }
  12. print ''
  13. log_info 'Setting up notarization keychain...'
  14. log_warning "
  15. + Your Apple ID and an app-specific password is necessary for notarization from CLI
  16. + This password will be stored in your macOS keychain under the identifier
  17. 'OBS-Codesign-Password' with access Apple's 'altool' only.
  18. "
  19. xcrun notarytool store-credentials 'OBS-Codesign-Password' --apple-id "${CODESIGN_IDENT_USER}" --team-id "${CODESIGN_TEAM}" --password "${CODESIGN_IDENT_PASS}"