This commit is contained in:
rustdesk 2023-11-22 16:43:47 +08:00
parent 515c91a407
commit 8718152dba

View File

@ -128,7 +128,7 @@ jobs:
- name: Sign rustdesk files - name: Sign rustdesk files
uses: GermanBluefox/code-sign-action@v7 uses: GermanBluefox/code-sign-action@v7
if: env.UPLOAD_ARTIFACT == 'true' if: false # env.UPLOAD_ARTIFACT == 'true'
with: with:
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
@ -149,7 +149,7 @@ jobs:
- name: Sign rustdesk self-extracted file - name: Sign rustdesk self-extracted file
uses: GermanBluefox/code-sign-action@v7 uses: GermanBluefox/code-sign-action@v7
if: env.UPLOAD_ARTIFACT == 'true' if: false #env.UPLOAD_ARTIFACT == 'true'
with: with:
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
@ -251,7 +251,7 @@ jobs:
- name: Sign rustdesk files - name: Sign rustdesk files
uses: GermanBluefox/code-sign-action@v7 uses: GermanBluefox/code-sign-action@v7
if: env.UPLOAD_ARTIFACT == 'true' if: false #env.UPLOAD_ARTIFACT == 'true'
with: with:
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
@ -272,6 +272,7 @@ jobs:
- name: Sign rustdesk self-extracted file - name: Sign rustdesk self-extracted file
uses: GermanBluefox/code-sign-action@v7 uses: GermanBluefox/code-sign-action@v7
if: false #env.UPLOAD_ARTIFACT == 'true'
with: with:
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
@ -400,7 +401,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 != null if: env.MACOS_P12_BASE64 != null && env.UPLOAD_ARTIFACT == 'true'
run: | run: |
# Patch create-dmg to give more attempts to unmount image # Patch create-dmg to give more attempts to unmount image
CREATE_DMG="$(command -v create-dmg)" CREATE_DMG="$(command -v create-dmg)"
@ -418,6 +419,7 @@ jobs:
rcodesign notary-submit --api-key-path ${{ github.workspace }}/rustdesk.json --staple rustdesk-${{ env.VERSION }}.dmg rcodesign notary-submit --api-key-path ${{ github.workspace }}/rustdesk.json --staple rustdesk-${{ env.VERSION }}.dmg
- name: Rename rustdesk - name: Rename rustdesk
if: env.UPLOAD_ARTIFACT == 'true'
run: | run: |
for name in rustdesk*??.dmg; do for name in rustdesk*??.dmg; do
mv "$name" "${name%%.dmg}-${{ matrix.job.arch }}.dmg" mv "$name" "${name%%.dmg}-${{ matrix.job.arch }}.dmg"