Skip to content

Commit 0427444

Browse files
fazxesclaude
andcommitted
ci: install real Claude Code CLI instead of stub
Shell scripts are not valid Mach-O binaries - macOS still reports the app as "damaged". Install the actual Claude CLI using the official install script to match local build behavior. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ef827fd commit 0427444

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -355,16 +355,15 @@ jobs:
355355
bun build ./src/index.ts --compile --target=bun-darwin-arm64 --outfile=../src-tauri/binaries/agent-bridge-aarch64-apple-darwin
356356
chmod +x ../src-tauri/binaries/agent-bridge-aarch64-apple-darwin
357357
358-
# Create a valid stub binary for claude (not built in CI)
359-
# Must be a real executable, not an empty file, or macOS reports app as "damaged"
360-
- name: Create claude stub binary
358+
# Install Claude Code CLI and copy the binary
359+
- name: Install Claude Code CLI
361360
run: |
362-
cat > src-tauri/binaries/claude-aarch64-apple-darwin << 'STUB'
363-
#!/bin/bash
364-
echo "Claude CLI stub - install the real binary for full functionality"
365-
exit 0
366-
STUB
361+
curl -fsSL https://claude.ai/install.sh | bash
362+
# Add to PATH and copy binary
363+
export PATH="$HOME/.claude/local/bin:$PATH"
364+
cp "$HOME/.claude/local/bin/claude" src-tauri/binaries/claude-aarch64-apple-darwin
367365
chmod +x src-tauri/binaries/claude-aarch64-apple-darwin
366+
ls -la src-tauri/binaries/
368367
369368
# Build Tauri app (includes frontend build via beforeBuildCommand)
370369
- name: Build Tauri macOS app

0 commit comments

Comments
 (0)