Skip to content

Commit

Permalink
More troubleshooting of Mac code signing
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed Jul 7, 2024
1 parent 6ed083a commit 9be5db1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/build_dmg.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ if [ "$IDENTITY_PASSPHRASE" != "" ]; then
security unlock-keychain -p "$IDENTITY_PASSPHRASE" build.keychain

# Put the base-64 encoded signing certificicate into a text file, decode it to binary form.
echo "Decoding signing certificate to binary format"
echo "$IDENTITY_P12_B64" > DS_ID_App.p12.txt
openssl base64 -d -in DS_ID_App.p12.txt -out DS_ID_App.p12
ls -l DS_ID_App.p12
file DS_ID_App.p12

# Install the decoded signing certificate into our unlocked build keychain.
echo "Importing signing certificate into keychain"
security import DS_ID_App.p12 -A -P "$IDENTITY_PASSPHRASE"

# Set the keychain to allow use of the certificate without user interaction (we are headless!)
Expand Down

0 comments on commit 9be5db1

Please sign in to comment.