fix env.MACOS_P12_BASE64

This commit is contained in:
botanicvelious 2023-01-18 19:45:17 -07:00 committed by GitHub
parent 5a214d9185
commit 74a7523662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ jobs:
uses: actions/checkout@v3
- name: Import the codesign cert
if: ${{ env.MACOS_P12_BASE64== 'true' }}
if: env.MACOS_P12_BASE64 != null
uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}
@ -164,13 +164,13 @@ jobs:
keychain: rustdesk
- name: Check sign and import sign key
if: ${{ env.MACOS_P12_BASE64== 'true' }}
if: env.MACOS_P12_BASE64 != null
run: |
security default-keychain -s rustdesk.keychain
security find-identity -v
- name: Import notarize key
if: ${{ env.MACOS_P12_BASE64== 'true' }}
if: env.MACOS_P12_BASE64 != null
uses: timheuer/base64-to-file@v1.2
with:
# https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling
@ -179,7 +179,7 @@ jobs:
encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}
- name: Install rcodesign tool
if: ${{ env.MACOS_P12_BASE64== 'true' }}
if: env.MACOS_P12_BASE64 != null
shell: bash
run: |
pushd /tmp
@ -250,7 +250,7 @@ jobs:
./build.py --flutter ${{ matrix.job.extra-build-args }}
- name: Codesign app and create signed dmg
if: ${{ env.MACOS_P12_BASE64== 'true' }}
if: env.MACOS_P12_BASE64 != null
run: |
security default-keychain -s rustdesk.keychain
security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain