fix(build): gate platform-specific proxy helper

This commit is contained in:
NimBold
2026-07-15 12:49:40 +03:30
parent df3bc359c4
commit 9917f29743
+2
View File
@@ -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<String> {
})
}
#[cfg(any(target_os = "macos", target_os = "linux"))]
fn command_stdout(command: &mut Command) -> std::io::Result<String> {
let output = command.output()?;
if !output.status.success() {