Skip to content

Commit

Permalink
wip sign app
Browse files Browse the repository at this point in the history
  • Loading branch information
marzelwidmer committed Sep 8, 2024
1 parent 4b77c14 commit 8292b06
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:
~/.konan
key: ${{ runner.os }}-v1-${{ hashFiles('*.versions.toml') }}

- name: Import Mac App Distribution and Installer certificate
- name: Import Developer ID Application certificate
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.MAC_APP_DISTRIBUTION_INSTALLER_CERTIFICATE }}
p12-password: ${{ secrets.MAC_APP_DISTRIBUTION_INSTALLER_CERTIFICATE_PWD }}
p12-file-base64: ${{ secrets.DEVELOPER_ID_APPLICATION_CERTIFICATE }}
p12-password: ${{ secrets.DEVELOPER_ID_APPLICATION_CERTIFICATE_PWD }}

- name: List keychains
run: security list-keychains
Expand All @@ -54,24 +54,16 @@ jobs:
run: |
security list-keychains -s "/Users/runner/Library/Keychains/signing_temp.keychain-db"
security default-keychain -s "/Users/runner/Library/Keychains/signing_temp.keychain-db"
security unlock-keychain -p "${{ secrets.MAC_APP_DISTRIBUTION_INSTALLER_CERTIFICATE_PWD }}" "/Users/runner/Library/Keychains/signing_temp.keychain-db"
security set-key-partition-list -S apple-tool:,apple: -s -k "${{ secrets.MAC_APP_DISTRIBUTION_INSTALLER_CERTIFICATE_PWD }}" "/Users/runner/Library/Keychains/signing_temp.keychain-db"
security unlock-keychain -p "${{ secrets.DEVELOPER_ID_APPLICATION_CERTIFICATE_PWD }}" "/Users/runner/Library/Keychains/signing_temp.keychain-db"
security set-key-partition-list -S apple-tool:,apple: -s -k "${{ secrets.DEVELOPER_ID_APPLICATION_CERTIFICATE_PWD }}" "/Users/runner/Library/Keychains/signing_temp.keychain-db"
- name: Sign DMG
run: |
codesign --deep --force --verify --verbose --sign "3rd Party Mac Developer Installer: Marcel Widmer (E9YX4X8TYH)" composeApp/build/compose/binaries/main-release/dmg/*.dmg
codesign --deep --force --verify --verbose --sign "Developer ID Application: Marcel Widmer (E9YX4X8TYH)" composeApp/build/compose/binaries/main-release/dmg/*.dmg
- name: Verify Signature
run: spctl -a -t open --context context:primary-signature -v composeApp/build/compose/binaries/main-release/dmg/*.dmg

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: |
**/build/compose/logs/*
- name: Upload DMG
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 8292b06

Please sign in to comment.