From 9917f297437cedbe19e32a444ca9671bfcc5e9ff Mon Sep 17 00:00:00 2001 From: NimBold Date: Wed, 15 Jul 2026 12:49:40 +0330 Subject: [PATCH] fix(build): gate platform-specific proxy helper --- src-tauri/src/parity.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/parity.rs b/src-tauri/src/parity.rs index 7afecbb..d90cb59 100644 --- a/src-tauri/src/parity.rs +++ b/src-tauri/src/parity.rs @@ -1,4 +1,5 @@ use serde::{Deserialize, Serialize}; +#[cfg(any(target_os = "macos", target_os = "linux"))] use std::process::Command; use ts_rs::TS; @@ -83,6 +84,7 @@ fn proxy_from_environment() -> Option { }) } +#[cfg(any(target_os = "macos", target_os = "linux"))] fn command_stdout(command: &mut Command) -> std::io::Result { let output = command.output()?; if !output.status.success() {