diff --git a/README.md b/README.md index f2e705e4..5e8fbaef 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Updates to `neowofetch` begins with the emoji 🖼️ Note: You can install the latest nightly version by using: ```sh -pip install git+https://github.com/hykilpikonna/hyfetch.git@master +cargo install --git https://github.com/hykilpikonna/hyfetch ``` diff --git a/crates/hyfetch/build.rs b/crates/hyfetch/build.rs index 3af265fe..91150619 100644 --- a/crates/hyfetch/build.rs +++ b/crates/hyfetch/build.rs @@ -30,6 +30,11 @@ fn main() { let dir = PathBuf::from(env::var_os("CARGO_WORKSPACE_DIR").unwrap_or_else(|| env::var_os("CARGO_MANIFEST_DIR").unwrap())); let o = PathBuf::from(env::var_os("OUT_DIR").unwrap()); + // Ensure output directory exists + if !o.exists() { + fs::create_dir_all(&o).expect("Failed to create OUT_DIR"); + } + for file in &["neofetch", "hyfetch"] { let src = dir.join(file); let dst = o.join(file);