aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-02-26 09:27:59 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-02-26 09:27:59 +0000
commitb6ce24280f9935a692aca8500c3a577a489a4d58 (patch)
tree9eda2aa3cd22bb28cab4ed0c1cb28f673fe5af58
parentinfra(crates.io): readd wasm assets to the repo (diff)
downloadsl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.tar.gz
sl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.tar.xz
sl0ppij-b6ce24280f9935a692aca8500c3a577a489a4d58.zip
infra(crates.io): clear the correct directory in build.rs
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--build.rs6
3 files changed, 7 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 7342b6aa..eb1b291e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2238,7 +2238,7 @@ dependencies = [
[[package]]
name = "zellij"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"async-std",
"backtrace",
diff --git a/Cargo.toml b/Cargo.toml
index 366842da..1d9ac68f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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)"
diff --git a/build.rs b/build.rs
index e7d2f36a..fdb7ab7a 100644
--- a/build.rs
+++ b/build.rs
@@ -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());