From 61eed8c8b9c728a5ae68edd9e8b426162daf303a Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Tue, 6 Jan 2026 10:47:23 -0500 Subject: [PATCH] Fix nightly bundle (#46163) The visual_test_runner binary (added in #45259) has `required-features = ["visual-tests"]`, so it doesn't get built in release builds. However, `cargo bundle` was trying to bundle all binaries defined in the zed crate's Cargo.toml, causing it to fail when visual_test_runner doesn't exist. Adding `--bin zed` tells cargo bundle to only bundle the main zed binary. **Note:** The `cli` binary is unaffected by this change - it's a separate package (`crates/cli`) that's built separately via `cargo build --package cli` and manually copied into the app bundle afterward (line 337). It was never part of `cargo bundle`'s scope. Fixes the nightly build failure: https://github.com/zed-industries/zed/actions/runs/20740971838 Release Notes: - N/A --- script/bundle-mac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bundle-mac b/script/bundle-mac index 93ea07b162612d27784dbd0eb54598b0aa2252c3..ccb254b57aa54f2b216a24f0957cd4c7990575c0 100755 --- a/script/bundle-mac +++ b/script/bundle-mac @@ -100,7 +100,7 @@ sed \ "s/package.metadata.bundle-${channel}/package.metadata.bundle/" \ Cargo.toml -app_path=$(cargo bundle ${build_flag} --target $target_triple --select-workspace-root | xargs) +app_path=$(cargo bundle ${build_flag} --target $target_triple --select-workspace-root --bin zed | xargs) mv Cargo.toml.backup Cargo.toml popd