Skip to content

Commit e6dd366

Browse files
committed
add default sdk path on windows
1 parent f637eed commit e6dd366

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geode"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
authors = ["HJfod <[email protected]>", "Camila314 <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"

src/sdk.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,15 @@ pub fn subcommand(config: &mut Config, cmd: Sdk) {
335335
}
336336
}
337337

338-
let default_path = if cfg!(target_os = "macos") {
338+
install(config, path.unwrap_or(if cfg!(target_os = "macos") {
339339
PathBuf::from("/Users/Shared/Geode/sdk")
340340
} else {
341-
todo!();
342-
};
343-
344-
install(config, path.unwrap_or(default_path));
341+
dirs::document_dir()
342+
.nice_unwrap(
343+
"No default path available! \
344+
Please provide a path manually"
345+
).join("Geode")
346+
}));
345347
},
346348
Sdk::Uninstall => { uninstall(config); },
347349
Sdk::Update { branch } => update(config, branch),

0 commit comments

Comments
 (0)