fix env.MACOS_P12_BASE64
This commit is contained in:
parent
5a214d9185
commit
74a7523662
10
.github/workflows/flutter-nightly.yml
vendored
10
.github/workflows/flutter-nightly.yml
vendored
@ -156,7 +156,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Import the codesign cert
|
- name: Import the codesign cert
|
||||||
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
if: env.MACOS_P12_BASE64 != null
|
||||||
uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v1
|
||||||
with:
|
with:
|
||||||
p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}
|
p12-file-base64: ${{ secrets.MACOS_P12_BASE64 }}
|
||||||
@ -164,13 +164,13 @@ jobs:
|
|||||||
keychain: rustdesk
|
keychain: rustdesk
|
||||||
|
|
||||||
- name: Check sign and import sign key
|
- name: Check sign and import sign key
|
||||||
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
if: env.MACOS_P12_BASE64 != null
|
||||||
run: |
|
run: |
|
||||||
security default-keychain -s rustdesk.keychain
|
security default-keychain -s rustdesk.keychain
|
||||||
security find-identity -v
|
security find-identity -v
|
||||||
|
|
||||||
- name: Import notarize key
|
- name: Import notarize key
|
||||||
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
if: env.MACOS_P12_BASE64 != null
|
||||||
uses: timheuer/base64-to-file@v1.2
|
uses: timheuer/base64-to-file@v1.2
|
||||||
with:
|
with:
|
||||||
# https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling
|
# https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling
|
||||||
@ -179,7 +179,7 @@ jobs:
|
|||||||
encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}
|
encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}
|
||||||
|
|
||||||
- name: Install rcodesign tool
|
- name: Install rcodesign tool
|
||||||
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
if: env.MACOS_P12_BASE64 != null
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pushd /tmp
|
pushd /tmp
|
||||||
@ -250,7 +250,7 @@ jobs:
|
|||||||
./build.py --flutter ${{ matrix.job.extra-build-args }}
|
./build.py --flutter ${{ matrix.job.extra-build-args }}
|
||||||
|
|
||||||
- name: Codesign app and create signed dmg
|
- name: Codesign app and create signed dmg
|
||||||
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
if: env.MACOS_P12_BASE64 != null
|
||||||
run: |
|
run: |
|
||||||
security default-keychain -s rustdesk.keychain
|
security default-keychain -s rustdesk.keychain
|
||||||
security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain
|
security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user