Skip to content

Commit

Permalink
macOS/sign.sh: don't fail if keychain exists
Browse files Browse the repository at this point in the history
This makes the script reentrant, allowing to run it also interactively
repeatedly, provided that the `apple_key_p12_b64` and
`notarytool_credentials` environment variables are correctly set.
  • Loading branch information
MartinPulec committed Nov 2, 2023
1 parent 0f9dbdf commit b8e0acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/macOS/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ KEY_CHAIN_PASS=build
KEY_FILE=/tmp/signing_key.p12
KEY_FILE_PASS=dummy
echo "$apple_key_p12_b64" | base64 -d > $KEY_FILE
security create-keychain -p $KEY_CHAIN_PASS $KEY_CHAIN
security create-keychain -p $KEY_CHAIN_PASS $KEY_CHAIN || true
security default-keychain -s $KEY_CHAIN
security unlock-keychain -p $KEY_CHAIN_PASS $KEY_CHAIN
security import "$KEY_FILE" -A -P "$KEY_FILE_PASS"
Expand Down

0 comments on commit b8e0acf

Please sign in to comment.