forked from rabite0/hunter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rs
26 lines (21 loc) · 876 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
extern crate rustc_version;
extern crate termion;
// use std::process::Command;
fn main() -> Result<(), ()> {
// crates.io doesn't allow question marks in file names
// So we just stuff that in an archive for distribution
// // rename so we can just extract this into config dir later
// Command::new("cp")
// .args("-a extra hunter".split(" "))
// .status()
// .expect("Can't create copy of extra directory");
// // create archive that will be included in hunter binary
// Command::new("tar")
// .args("cfz config.tar.gz hunter".split(" "))
// .status()
// .expect("Failed to create archive of defualt config!");
// // delete directory we just compressed
// std::fs::remove_dir_all("hunter")
// .expect("Couldn't delete temporary config directory \"hunter\"");
return Ok(());
}