From 90da14c010cbf9839edc9807c315649b089a915a Mon Sep 17 00:00:00 2001 From: Fan Yang Date: Fri, 19 Jan 2024 18:13:50 +0800 Subject: [PATCH] download LuaJIT archive instead of git clone --- golua/lua/buildlua.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/golua/lua/buildlua.sh b/golua/lua/buildlua.sh index 6bb47c4..dc0a124 100755 --- a/golua/lua/buildlua.sh +++ b/golua/lua/buildlua.sh @@ -36,7 +36,9 @@ find . -name 'lua*' -type d | while read dir; do done if [ ! -d luajit ]; then - git clone --depth 1 https://github.com/LuaJIT/LuaJIT.git luajit + curl -sSL -o LuaJIT.zip https://codeload.github.com/LuaJIT/LuaJIT/zip/refs/heads/v2.1 + unzip -q LuaJIT.zip + mv LuaJIT-2.1 luajit fi cd luajit if [ "$OS" == "Darwin" ]; then