Skip to content

Commit ef827fd

Browse files
fazxesclaude
andcommitted
fix(ci): create valid shell script stub for claude binary
An empty file created with `touch` is not a valid Mach-O executable. macOS detects this invalid binary and reports the entire app as "damaged". Replace with a proper shell script that exits cleanly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ded21f5 commit ef827fd

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +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 placeholder for claude binary (not built in CI)
359-
- name: Create claude placeholder
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
360361
run: |
361-
touch src-tauri/binaries/claude-aarch64-apple-darwin
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
362367
chmod +x src-tauri/binaries/claude-aarch64-apple-darwin
363368
364369
# Build Tauri app (includes frontend build via beforeBuildCommand)

0 commit comments

Comments
 (0)