Skip to content

Commit

Permalink
add default sdk path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Oct 13, 2022
1 parent f637eed commit e6dd366
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "geode"
version = "1.0.3"
version = "1.0.4"
authors = ["HJfod <[email protected]>", "Camila314 <[email protected]>"]
edition = "2021"
build = "build.rs"
Expand Down
12 changes: 7 additions & 5 deletions src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,15 @@ pub fn subcommand(config: &mut Config, cmd: Sdk) {
}
}

let default_path = if cfg!(target_os = "macos") {
install(config, path.unwrap_or(if cfg!(target_os = "macos") {
PathBuf::from("/Users/Shared/Geode/sdk")
} else {
todo!();
};

install(config, path.unwrap_or(default_path));
dirs::document_dir()
.nice_unwrap(
"No default path available! \
Please provide a path manually"
).join("Geode")
}));
},
Sdk::Uninstall => { uninstall(config); },
Sdk::Update { branch } => update(config, branch),
Expand Down

0 comments on commit e6dd366

Please sign in to comment.