mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
CI: Implement cert check
Allows for easier swapping between self-hosted and Github-provided runners
This commit is contained in:
@@ -30,12 +30,12 @@ jobs:
|
|||||||
- name: Build Binary
|
- name: Build Binary
|
||||||
run: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 Build-Binary.command --reset_binaries --branch "${{ env.branch }}" --commit "${{ env.commiturl }}" --commit_date "${{ env.commitdate }}" --key "${{ env.ANALYTICS_KEY }}" --site "${{ env.ANALYTICS_SITE }}"
|
run: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 Build-Binary.command --reset_binaries --branch "${{ env.branch }}" --commit "${{ env.commiturl }}" --commit_date "${{ env.commitdate }}" --key "${{ env.ANALYTICS_KEY }}" --site "${{ env.ANALYTICS_SITE }}"
|
||||||
|
|
||||||
# Uncomment when using Github Runners or first run on self-hosted
|
- name: Import Certificate
|
||||||
# - name: Import Certificate
|
if: !test -f ~/Library/Keychains/login.keychain-db || !security find-certificate -c "${{ env.MAC_CODESIGN_IDENTITY }}" ~/Library/Keychains/login.keychain-db
|
||||||
# uses: apple-actions/import-codesign-certs@v1
|
uses: apple-actions/import-codesign-certs@v1
|
||||||
# with:
|
with:
|
||||||
# p12-file-base64: ${{ secrets.MAC_CODESIGN_CERT }}
|
p12-file-base64: ${{ secrets.MAC_CODESIGN_CERT }}
|
||||||
# p12-password: ${{ secrets.MAC_NOTARIZATION_PASSWORD }}
|
p12-password: ${{ secrets.MAC_NOTARIZATION_PASSWORD }}
|
||||||
|
|
||||||
- name: Codesign Binary
|
- name: Codesign Binary
|
||||||
run: 'codesign -s "${{ env.MAC_CODESIGN_IDENTITY }}" -v --force --deep --timestamp --entitlements ./payloads/entitlements.plist -o runtime "dist/OpenCore-Patcher.app"'
|
run: 'codesign -s "${{ env.MAC_CODESIGN_IDENTITY }}" -v --force --deep --timestamp --entitlements ./payloads/entitlements.plist -o runtime "dist/OpenCore-Patcher.app"'
|
||||||
|
|||||||
Reference in New Issue
Block a user