summaryrefslogtreecommitdiffstats
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.rs b/build.rs
new file mode 100644
index 0000000..7403a3f
--- /dev/null
+++ b/build.rs
@@ -0,0 +1,11 @@
+use std::{env::current_dir, fs, process::Command};
+
+fn main() {
+ if !fs::exists(".cursors.min").unwrap() {
+ Command::new("/bin/bash")
+ .arg("./contrib/gen-meta.sh")
+ .current_dir(current_dir().unwrap().to_str().unwrap())
+ .output()
+ .expect("Failed to execute command");
+ }
+}