linux: Hide Install CLI from welcome (#14506)

Conrad Irwin created

Release Notes:

- linux: Remove "Install CLI" from welcome, it is not necessary

Change summary

crates/welcome/src/welcome.rs | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)

Detailed changes

crates/welcome/src/welcome.rs 🔗

@@ -123,20 +123,22 @@ impl Render for WelcomePage {
                                             .ok();
                                     })),
                             )
-                            .child(
-                                Button::new("install-cli", "Install the CLI")
-                                    .full_width()
-                                    .on_click(cx.listener(|this, _, cx| {
-                                        this.telemetry.report_app_event(
-                                            "welcome page: install cli".to_string(),
-                                        );
-                                        cx.app_mut()
-                                            .spawn(|cx| async move {
-                                                install_cli::install_cli(&cx).await
-                                            })
-                                            .detach_and_log_err(cx);
-                                    })),
-                            )
+                            .when(cfg!(target_os = "macos"), |el| {
+                                el.child(
+                                    Button::new("install-cli", "Install the CLI")
+                                        .full_width()
+                                        .on_click(cx.listener(|this, _, cx| {
+                                            this.telemetry.report_app_event(
+                                                "welcome page: install cli".to_string(),
+                                            );
+                                            cx.app_mut()
+                                                .spawn(|cx| async move {
+                                                    install_cli::install_cli(&cx).await
+                                                })
+                                                .detach_and_log_err(cx);
+                                        })),
+                                )
+                            })
                             .child(
                                 Button::new("sign-in-to-copilot", "Sign in to GitHub Copilot")
                                     .full_width()