Skip to content

Commit

Permalink
fix: fix build script dist directory
Browse files Browse the repository at this point in the history
  • Loading branch information
AxerTheAxe committed Jun 30, 2024
1 parent 6e7fa6f commit 3c8853b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
target
dist
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod args;

fn main() -> Result<()> {
let out_dir =
PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").ok_or(ErrorKind::NotFound)?).join("dist");
PathBuf::from(env::var_os("OUT_DIR").ok_or(ErrorKind::NotFound)?).join("dist");
if !out_dir.exists() {
fs::create_dir(&out_dir).unwrap();
}
Expand Down

0 comments on commit 3c8853b

Please sign in to comment.