[WINDOWS] Add bin folder in path
This commit is contained in:
parent
bb6d50d76c
commit
98564956ac
9 changed files with 101 additions and 13 deletions
19
src/common/utils/configure/mod.rs
Normal file
19
src/common/utils/configure/mod.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
#[cfg(target_os = "windows")]
|
||||
mod windows;
|
||||
|
||||
pub fn configure() -> Result<(), String> {
|
||||
#[cfg(target_os = "windows")]
|
||||
windows::configure().ok_or(format!("Failed to configure environment"))?;
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
{
|
||||
Err(format!("OS not supported"))
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
|
||||
{
|
||||
Ok(())
|
||||
}
|
||||
}
|
Reference in a new issue