mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: attempt to fix mas 10
This commit is contained in:
parent
e7fc459f07
commit
327051a24f
1 changed files with 4 additions and 19 deletions
|
|
@ -45,25 +45,10 @@ jobs:
|
|||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Configure signing keychain
|
||||
env:
|
||||
MAC_CERTS: ${{ secrets.mac_certs }}
|
||||
MAC_CERTS_PASSWORD: ${{ secrets.mac_certs_password }}
|
||||
run: |
|
||||
CERT_PATH="$RUNNER_TEMP/mac-certs.p12"
|
||||
echo "$MAC_CERTS" | base64 --decode > "$CERT_PATH"
|
||||
echo "=== DIAGNOSTIC: Decoded .p12 SHA256 ==="
|
||||
shasum -a 256 "$CERT_PATH"
|
||||
echo "========================================"
|
||||
security create-keychain -p "" build.keychain
|
||||
security set-keychain-settings -lut 21600 build.keychain
|
||||
security unlock-keychain -p "" build.keychain
|
||||
curl -fsSL https://www.apple.com/certificateauthority/AppleWWDRCAG4.cer -o "$RUNNER_TEMP/AppleWWDRCAG4.cer"
|
||||
security import "$RUNNER_TEMP/AppleWWDRCAG4.cer" -k build.keychain -T /usr/bin/codesign
|
||||
security import "$CERT_PATH" -k build.keychain -P "$MAC_CERTS_PASSWORD" -T /usr/bin/codesign -T /usr/bin/security -T /usr/bin/pkgbuild -T /usr/bin/productbuild
|
||||
security list-keychains -s build.keychain login.keychain
|
||||
security set-key-partition-list -S apple-tool:,apple: -k "" build.keychain
|
||||
security find-identity -v -p codesigning build.keychain
|
||||
- uses: apple-actions/import-codesign-certs@v5
|
||||
with:
|
||||
p12-file-base64: ${{ secrets.mac_certs }}
|
||||
p12-password: ${{ secrets.mac_certs_password }}
|
||||
|
||||
- name: List available signing identities
|
||||
run: security find-identity -v -p codesigning
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue