diff options
author | Vika <vika@fireburn.ru> | 2023-07-29 21:59:56 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-29 21:59:56 +0300 |
commit | 0617663b249f9ca488e5de652108b17d67fbaf45 (patch) | |
tree | 11564b6c8fa37bf9203a0a4cc1c4e9cc088cb1a5 /kittybox-rs/build.rs | |
parent | 26c2b79f6a6380ae3224e9309b9f3352f5717bd7 (diff) | |
download | kittybox-0617663b249f9ca488e5de652108b17d67fbaf45.tar.zst |
Moved the entire Kittybox tree into the root
Diffstat (limited to 'kittybox-rs/build.rs')
-rw-r--r-- | kittybox-rs/build.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/kittybox-rs/build.rs b/kittybox-rs/build.rs deleted file mode 100644 index 05eca7a..0000000 --- a/kittybox-rs/build.rs +++ /dev/null @@ -1,30 +0,0 @@ -use std::env; - -fn main() { - println!("cargo:rerun-if-changed=migrations"); - - let out_dir = env::var("OUT_DIR").unwrap(); - - println!("cargo:rerun-if-changed=companion-lite/"); - let companion_out = std::path::Path::new(&out_dir).join("companion"); - - if let Ok(exit) = std::process::Command::new("tsc") - .arg("--outDir") - .arg(companion_out.as_os_str()) - .current_dir("companion-lite") - .spawn() - .unwrap() - .wait() - { - if !exit.success() { - std::process::exit(exit.code().unwrap_or(1)) - } - } - let companion_in = std::path::Path::new("companion-lite"); - for file in ["index.html", "style.css"] { - std::fs::copy( - companion_in.join(file), - &companion_out.join(file) - ).unwrap(); - } -} |