Skip to content

Commit

Permalink
- fix: prevent build script when publishing (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Dec 9, 2024
1 parent f64d36b commit 2624522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 31 deletions.
15 changes: 9 additions & 6 deletions libs/shinkai-tools-runner/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ mod copy_assets;

fn main() {
println!("cargo:rerun-if-changed=copy_assets.rs");
// Get profile (debug/release) from cargo
let profile = env::var("PROFILE").unwrap();
copy_assets::copy_assets(
Some(PathBuf::from(".")),
Some(PathBuf::from("../../target").join(&profile)),
);

if env::var("CARGO_PUBLISH").is_err() {
let profile = env::var("PROFILE").unwrap();
copy_assets::copy_assets(
Some(PathBuf::from(".")),
Some(PathBuf::from("../../target").join(&profile)),
)
.unwrap();
}
}
25 changes: 0 additions & 25 deletions scripts/copy-deno.ts

This file was deleted.

0 comments on commit 2624522

Please sign in to comment.