Use luarocks make --local in build.rs

This commit is contained in:
Ottatop 2024-01-15 21:53:13 -06:00
parent e18b2a12d3
commit c86300228a

View file

@ -32,4 +32,12 @@ fn main() {
.unwrap()
.wait()
.unwrap();
std::env::set_current_dir("api/lua_grpc").unwrap();
std::process::Command::new("/bin/sh")
.arg("luarocks")
.arg("make")
.arg("--local")
.spawn()
.expect("Luarocks is not installed");
}