From c86300228aec2a2f3426f95a051041480a8e1f13 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Mon, 15 Jan 2024 21:53:13 -0600 Subject: [PATCH] Use `luarocks make --local` in build.rs --- build.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.rs b/build.rs index 9c6dc86..1cc1b14 100644 --- a/build.rs +++ b/build.rs @@ -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"); }