Ensure we have the targets needed for bundling (#38688)

Conrad Irwin created

Closes #ISSUE

Release Notes:

- N/A

Change summary

script/bundle-mac | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

script/bundle-mac 🔗

@@ -90,6 +90,9 @@ if [ "$local_arch" = true ]; then
     echo "Building for local target only."
     cargo build ${build_flag} --package zed --package cli --package remote_server
 else
+    rustup target add aarch64-apple-darwin
+    rustup target add x86_64-apple-darwin
+
     echo "Compiling zed binaries"
     cargo build ${build_flag} --package zed --package cli --target aarch64-apple-darwin --target x86_64-apple-darwin
     # Build remote_server in separate invocation to prevent feature unification from other crates