mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
macOS Support (#18)
* replace target_os = "linux" with target_family = "unix" * check correct dir for macos steam files
This commit is contained in:
@@ -118,6 +118,18 @@ pub fn get_default_location() -> Result<String, Box<dyn Error>> {
|
||||
.unwrap_or(""),
|
||||
)
|
||||
};
|
||||
#[cfg(target_os = "macos")]
|
||||
let path_string = {
|
||||
let home = std::env::var("HOME")?;
|
||||
String::from(
|
||||
Path::new(&home)
|
||||
.join("Library")
|
||||
.join("Application Support")
|
||||
.join("Steam")
|
||||
.to_str()
|
||||
.unwrap_or(""),
|
||||
)
|
||||
};
|
||||
Ok(path_string)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user