From 713bcce0ec1a026cc288d9fb2c646e66c7786bb0 Mon Sep 17 00:00:00 2001 From: Azalea Gui <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:35:04 -0400 Subject: [PATCH] [F] Fix git install --- README.md | 2 +- crates/hyfetch/build.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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);