Skip to content

Commit

Permalink
Keep existing keychains in list
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Feb 27, 2025
1 parent b6a49d8 commit 9d92421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions installer-downloader/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ function setup_macos_keychain {
/usr/bin/security unlock-keychain -p "$SIGN_KEYCHAIN_PASS" "$SIGN_KEYCHAIN_PATH"
/usr/bin/security set-keychain-settings "$SIGN_KEYCHAIN_PATH"

# Set search list to our keychain, or codesign won't find it
/usr/bin/security list-keychains -d user -s "$SIGN_KEYCHAIN_PATH"
# Add our keychain to the search list, keeping existing keychains, or codesign won't find it
/usr/bin/security list-keychains -d user -s "$SIGN_KEYCHAIN_PATH" "$(security list-keychains -d user | tr -d '"')"

log_info "Importing PKCS #12 to keychain"

Expand All @@ -158,7 +158,7 @@ function setup_macos_keychain {
# Find identity
log_info "Find the identity to use"

/usr/bin/security find-identity -v -p codesigning
/usr/bin/security find-identity -p codesigning
read -rp "Enter identity: " SIGN_KEYCHAIN_IDENTITY
export SIGN_KEYCHAIN_IDENTITY

Expand Down

0 comments on commit 9d92421

Please sign in to comment.