Skip to content

Commit 1fa2245

Browse files
yshingclaude
andcommitted
Add macOS code signing via cargo-dist
Sets macos-sign = true in dist-workspace.toml; regenerates release.yml to pass CODESIGN_CERTIFICATE, CODESIGN_CERTIFICATE_PASSWORD, and CODESIGN_IDENTITY secrets to macOS build runners. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent f4e5f88 commit 1fa2245

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ jobs:
112112
env:
113113
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114114
BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json
115+
CODESIGN_CERTIFICATE: ${{ secrets.CODESIGN_CERTIFICATE }}
116+
CODESIGN_CERTIFICATE_PASSWORD: ${{ secrets.CODESIGN_CERTIFICATE_PASSWORD }}
117+
CODESIGN_IDENTITY: ${{ secrets.CODESIGN_IDENTITY }}
115118
permissions:
116119
"attestations": "write"
117120
"contents": "read"

dist-workspace.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ github-attestations = true
2121
install-path = "CARGO_HOME"
2222
# Whether to install an updater program
2323
install-updater = false
24+
# macOS code signing (uses APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_TEAM_ID secrets)
25+
macos-sign = true

0 commit comments

Comments
 (0)