diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-26 09:27:59 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-26 09:27:59 +0000 |
| commit | b6ce24280f9935a692aca8500c3a577a489a4d58 (patch) | |
| tree | 9eda2aa3cd22bb28cab4ed0c1cb28f673fe5af58 | |
| parent | infra(crates.io): readd wasm assets to the repo (diff) | |
| download | sl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.tar.gz sl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.tar.xz sl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.zip | |
infra(crates.io): clear the correct directory in build.rs
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | build.rs | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -2238,7 +2238,7 @@ dependencies = [ [[package]] name = "zellij" -version = "0.2.0" +version = "0.2.1" dependencies = [ "async-std", "backtrace", @@ -1,6 +1,6 @@ [package] name = "zellij" -version = "0.2.0" +version = "0.2.1" authors = ["Aram Drevekenin <aram@poor.dev>"] edition = "2018" description = "Terminal workspace (WIP)" @@ -32,7 +32,11 @@ fn main() { } // Rerun on plugin change - for entry in WalkDir::new("target") { + #[cfg(not(feature = "publish"))] + let plugin_dir = "target"; + #[cfg(feature = "publish")] + let plugin_dir = "assets/plugins"; + for entry in WalkDir::new(plugin_dir) { let entry = entry.unwrap(); if entry.path().extension() == Some(OsStr::new("wasm")) { println!("cargo:rerun-if-changed={}", entry.path().to_string_lossy()); |
