mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-01-14 08:01:14 +01:00
0c4fc3ad1d
TODO: write the docs, fix input keysym reading, make a luarocks module
28 lines
747 B
Rust
28 lines
747 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=api/lua");
|
|
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();
|
|
}
|