Skip to content

Commit 54f3451

Browse files
dipankarclaude
andcommitted
ci(release): ad-hoc signing + Intel macOS OpenSSL fix
- Add CODESIGN_IDENTITY=- for ad-hoc macOS codesigning to prevent Gatekeeper 'damaged' errors on Apple Silicon. - Install x86_64 Homebrew OpenSSL and set OPENSSL_DIR for Intel macOS cross-compilation on Apple Silicon runners. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8bceecc commit 54f3451

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ jobs:
9999
sudo apt-get update
100100
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
101101
102+
# Intel macOS cross-compilation requires x86_64 Homebrew OpenSSL
103+
- name: Install x86_64 OpenSSL (macOS Intel cross-build)
104+
if: matrix.target == 'x86_64-apple-darwin'
105+
run: |
106+
arch -x86_64 /usr/local/bin/brew install openssl@3 || true
107+
echo "OPENSSL_DIR=$(arch -x86_64 /usr/local/bin/brew --prefix openssl@3 2>/dev/null || echo /usr/local/opt/openssl@3)" >> "$GITHUB_ENV"
108+
shell: bash
109+
102110
- name: Install frontend dependencies
103111
run: npm ci
104112

@@ -111,10 +119,14 @@ jobs:
111119
- name: Download Node.js for external binary
112120
run: bash ./scripts/download-node.sh --all
113121

122+
# Ad-hoc codesigning on macOS prevents "damaged" Gatekeeper errors
123+
# on Apple Silicon. Will be replaced with proper Developer ID signing
124+
# once an Apple Developer account is available.
114125
- name: Build Tauri app
115126
uses: tauri-apps/tauri-action@v0
116127
env:
117128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129+
CODESIGN_IDENTITY: ${{ matrix.platform == 'macos-latest' && '-' || '' }}
118130
with:
119131
tagName: ${{ github.ref_name }}
120132
releaseName: 'DSCode ${{ github.ref_name }}'

0 commit comments

Comments
 (0)