Skip to content

Commit

Permalink
Try another cert
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Dec 10, 2024
1 parent 7f7e38d commit a4a1f66
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,16 @@ jobs:
- name: Package Squirrel
if: inputs.event_name == 'push' || steps.check_version.outcome == 'success'
env:
SIGNING_IDENTITY: ${{ secrets.SIGNING_IDENTITY }}
SIGNING_CERTIFICATE: ${{ secrets.SIGNING_CERTIFICATE }}
SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }}
SIGNING_CERTIFICATE_AUTHORITY: ${{ secrets.SIGNING_CERTIFICATE_AUTHORITY }}
SIGNING_CERTIFICATE_AUTHORITY_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_AUTHORITY_PASSWORD }}
SIGNING_IDENTITY: ${{ secrets.SIGNING_IDENTITY_ALT }}
SIGNING_CERTIFICATE: ${{ secrets.SIGNING_CERTIFICATE_ALT }}
SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_ALT_PASSWORD }}
run: |
chmod u+x ./.ci/*
KEYCHAIN_PATH=~/Library/Keychains/squirrel.keychain
KEYCHAIN_PASSWORD=squirrel
security create-keychain -p "$KEYCHAIN_PASSWORD" squirrel.keychain
echo "$SIGNING_CERTIFICATE" | base64 -d > signing_certificate.p12
security import signing_certificate.p12 -k "$KEYCHAIN_PATH" -P "$SIGNING_CERTIFICATE_PASSWORD" -T /usr/bin/codesign
if [ -n "$SIGNING_CERTIFICATE_AUTHORITY" ] && [ -n "$SIGNING_CERTIFICATE_AUTHORITY_PASSWORD" ]; then
echo "$SIGNING_CERTIFICATE_AUTHORITY" | base64 -d > signing_certificate_authority.p12
security import signing_certificate_authority.p12 -k "$KEYCHAIN_PATH" -P "$SIGNING_CERTIFICATE_AUTHORITY_PASSWORD" -T /usr/bin/codesign
fi
security list-keychain -s "$KEYCHAIN_PATH"
security unlock-keychain -p "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" "$KEYCHAIN_PATH"
Expand Down

0 comments on commit a4a1f66

Please sign in to comment.