Skip to content

Commit

Permalink
adjust notarize
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Dec 24, 2024
1 parent 5e7e5f2 commit 78c3af2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,31 @@ jobs:
- name: Import Apple Developer Certificate (macOS only)
if: matrix.os == 'macos-latest'
env:
DEVELOPER_ID_CERT: ${{ secrets.DEVELOPER_ID_CERT }}
DEVELOPER_ID_CERT_PASSWORD: ${{ secrets.DEVELOPER_ID_CERT_PASSWORD }}
CSC_NAME: ${{ secrets.CSC_NAME }}
DEVELOPER_ID_CERT: ${{ secrets.DEVELOPER_ID_CERT }}
DEVELOPER_ID_CERT_PASSWORD: ${{ secrets.DEVELOPER_ID_CERT_PASSWORD }}
CSC_NAME: ${{ secrets.CSC_NAME }}
run: |
echo "$DEVELOPER_ID_CERT" | base64 --decode > developer_id_certificate.p12
security create-keychain -p "" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security import developer_id_certificate.p12 -k build.keychain -P "$DEVELOPER_ID_CERT_PASSWORD" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "" build.keychain
echo "$DEVELOPER_ID_CERT" | base64 --decode > developer_id_certificate.p12
security create-keychain -p "" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "" build.keychain
security import developer_id_certificate.p12 -k build.keychain -P "$DEVELOPER_ID_CERT_PASSWORD" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "" build.keychain
- name: List Certificates in Keychain (macOS only)
if: matrix.os == 'macos-latest'
run: |
security find-identity -v -p codesigning
security find-identity -v -p codesigning
- name: Build and Release
uses: samuelmeuli/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: true
env:
DEBUG: electron-notarize
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
CSC_NAME: ${{ secrets.CSC_NAME }}
DEBUG: electron-notarize*
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_NAME: ${{ secrets.CSC_NAME }}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
"NSApplicationSupportsSecureRestorableState": true,
"electronTeamId": "R2PY2DC3A4"
},
"notarize": {
"teamId": "R2PY2DC3A4"
},
"hardenedRuntime": true,
"gatekeeperAssess": true,
"entitlements": "entitlements.mac.plist",
Expand Down

0 comments on commit 78c3af2

Please sign in to comment.