From ba0cde2ea31343108b2aee936fa0ea40e41ade57 Mon Sep 17 00:00:00 2001 From: Zero Date: Sun, 18 Jun 2023 10:14:50 -0600 Subject: [PATCH] Revert "don't remove bindings/javascript/package.json, it's a committed file in whisper.cpp" This reverts commit 46d8f476428604d407053cdbcbff12882bb2bfa6. --- sys/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index 0dd76ca..1c58968 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -163,6 +163,8 @@ fn main() { // 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"); _ = 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