clean build directory after building to prevent cargo complaining

This commit is contained in:
0/0 2022-10-12 15:54:05 -06:00
parent 2d4801d87d
commit b312bb86b8
No known key found for this signature in database
GPG Key ID: DE8D5010C0AAA3DC

View File

@ -52,4 +52,9 @@ fn main() {
format!("{}/libwhisper.a", env::var("OUT_DIR").unwrap()),
)
.expect("Failed to copy libwhisper.a");
// clean the whisper build directory to prevent Cargo from complaining during crate publish
std::process::Command::new("make")
.arg("clean")
.status()
.expect("Failed to clean whisper build directory");
}