Merge pull request #64 from chrisrude/master

don't remove bindings/javascript/package.json during build
This commit is contained in:
0/0 2023-06-06 17:11:20 +00:00 committed by GitHub
commit f1436c0d7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,8 +163,6 @@ fn main() {
// clean the whisper build directory to prevent Cargo from complaining during crate publish // clean the whisper build directory to prevent Cargo from complaining during crate publish
env::set_current_dir("..").expect("Unable to change directory to whisper.cpp"); env::set_current_dir("..").expect("Unable to change directory to whisper.cpp");
_ = std::fs::remove_dir_all("build"); _ = std::fs::remove_dir_all("build");
// for whatever reason this file is generated during build and triggers cargo complaining
_ = std::fs::remove_file("bindings/javascript/package.json");
} }
// From https://github.com/alexcrichton/cc-rs/blob/fba7feded71ee4f63cfe885673ead6d7b4f2f454/src/lib.rs#L2462 // From https://github.com/alexcrichton/cc-rs/blob/fba7feded71ee4f63cfe885673ead6d7b4f2f454/src/lib.rs#L2462