From 6e3b3c8013e6d8814dbf70c854e55d062bedbdf4 Mon Sep 17 00:00:00 2001 From: memdmp Date: Mon, 13 Jan 2025 16:54:34 +0100 Subject: chore: initial commit --- build.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 build.rs (limited to 'build.rs') 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"); + } +} -- cgit v1.2.3