From fff746a980399312ac0955b45073901d21226d03 Mon Sep 17 00:00:00 2001 From: Yato202010 <61349049+Yato202010@users.noreply.github.com> Date: Sat, 11 Jan 2025 13:49:59 +0100 Subject: [PATCH] fix: build script --- build.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index db1a20c..ace9b93 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,5 @@ +use std::fs::remove_dir_all; + fn main() { println!("cargo:rerun-if-changed=vendor"); @@ -19,12 +21,15 @@ fn main() { if !srcdir.exists() { std::fs::create_dir(&srcdir).unwrap(); } + remove_dir_all(&srcdir).unwrap(); fs_extra::dir::copy( &d, &srcdir, &fs_extra::dir::CopyOptions::new() .overwrite(true) - .content_only(true), + .content_only(true) + .copy_inside(true) + .skip_exist(false), ) .unwrap(); autotools::Config::new(srcdir)