Skip to content

Commit 3036014

Browse files
ndbroadbentclaude
andcommitted
fix: exclude ctm-cli from release builds to fix macOS universal build
The macOS universal-apple-darwin build was failing because Tauri tried to bundle the ctm-cli binary, which wasn't being built for the universal target. Fixed by adding required-features = ["cli"] to the ctm-cli binary, so it's only built when explicitly requested with --features cli. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 4b976c4 commit 3036014

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ This runs: typecheck, lint, rust-lint, duplication check, file-length check, and
9393
A command-line tool is available for debugging and testing:
9494

9595
```bash
96-
# Build the CLI
97-
cd src-tauri && cargo build --bin ctm-cli
96+
# Build the CLI (requires --features cli)
97+
cd src-tauri && cargo build --bin ctm-cli --features cli
9898

9999
# List all chats
100100
./target/debug/ctm-cli list-chats
@@ -154,8 +154,9 @@ chat_to_map_desktop/
154154

155155
| Flag | Effect |
156156
|------|--------|
157-
| `dev-server` | Points to `localhost:5173` instead of `chattomap.com` |
158157
| `desktop` | Enables Tauri GUI (default) |
158+
| `dev-server` | Points to `localhost:5173` instead of `chattomap.com` |
159+
| `cli` | Enables the `ctm-cli` binary for debugging (not included in release builds) |
159160

160161
---
161162

src-tauri/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ required-features = ["desktop"]
5757
[[bin]]
5858
name = "ctm-cli"
5959
path = "src/cli.rs"
60+
required-features = ["cli"]
6061

6162
[features]
6263
default = ["desktop"]
6364
desktop = ["tauri", "tauri-plugin-shell", "tauri-plugin-dialog", "tauri/custom-protocol"]
65+
cli = []
6466
# Use local dev server instead of production
6567
dev-server = []
6668

0 commit comments

Comments
 (0)