Skip to content

Commit f637eed

Browse files
committed
remove installer references + fix config stuff
1 parent 44564b4 commit f637eed

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
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.2"
3+
version = "1.0.3"
44
authors = ["HJfod <[email protected]>", "Camila314 <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"

src/util/config.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ impl Config {
111111
pub fn new() -> Config {
112112
if !geode_root().exists() {
113113
warn!("It seems you don't have Geode installed. Some operations will not work");
114-
info!("You can install geode using the official installer");
115-
info!("At {}", "https://github.com/geode-sdk/installer/releases/latest".bright_cyan());
114+
info!("You can setup Geode using `geode config setup`");
116115

117116
return Config {
118117
current_profile: None,
@@ -127,6 +126,7 @@ impl Config {
127126
let config_json = geode_root().join("config.json");
128127

129128
let mut output: Config = if !config_json.exists() {
129+
info!("Setup Geode using `geode config setup`");
130130
// Create new config
131131
Config {
132132
current_profile: None,
@@ -158,7 +158,7 @@ impl Config {
158158

159159
if output.profiles.is_empty() {
160160
warn!("No Geode profiles found! Some operations will be unavailable.");
161-
info!("Install Geode using the official installer (https://github.com/geode-sdk/installer/releases/latest)");
161+
info!("Setup Geode using `geode config setup`");
162162
} else if output.get_profile(&output.current_profile).is_none() {
163163
output.current_profile = Some(output.profiles[0].borrow().name.clone());
164164
}
@@ -167,6 +167,7 @@ impl Config {
167167
}
168168

169169
pub fn save(&self) {
170+
std::fs::create_dir_all(geode_root()).nice_unwrap("Unable to create Geode directory");
170171
std::fs::write(
171172
geode_root().join("config.json"),
172173
serde_json::to_string(self).unwrap()

0 commit comments

Comments
 (0)