mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-24 17:56:28 +00:00
fix(build): gate platform-specific proxy helper
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
use ts_rs::TS;
|
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> {
|
fn command_stdout(command: &mut Command) -> std::io::Result<String> {
|
||||||
let output = command.output()?;
|
let output = command.output()?;
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
|
|||||||
Reference in New Issue
Block a user