mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +01:00
1cdc6fe42d
I'm sick and my brain is fried rn no clue what's in this commit
29 lines
800 B
Rust
29 lines
800 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=api/lua");
|
|
println!("cargo:rerun-if-changed=api/lua_grpc");
|
|
println!("cargo:rerun-if-changed=api/protocol");
|
|
|
|
let xdg = xdg::BaseDirectories::with_prefix("pinnacle").unwrap();
|
|
|
|
let data_dir = xdg.create_data_directory("").unwrap();
|
|
|
|
let copy_protos = format!("cp -r ./api/protocol {data_dir:?}/protobuf");
|
|
let copy_lua = format!("cp -r ./api/lua_grpc {data_dir:?}");
|
|
|
|
std::process::Command::new("/bin/sh")
|
|
.arg("-c")
|
|
.arg(©_protos)
|
|
.spawn()
|
|
.unwrap();
|
|
|
|
std::process::Command::new("/bin/sh")
|
|
.arg("-c")
|
|
.arg(©_lua)
|
|
.spawn()
|
|
.unwrap();
|
|
|
|
std::process::Command::new("/bin/sh")
|
|
.arg("install_libs.sh")
|
|
.spawn()
|
|
.unwrap();
|
|
}
|