From 5cf01f530b0b4f9fdb63635124762d6e4aff41fc Mon Sep 17 00:00:00 2001 From: yeshan333 Date: Sat, 25 Apr 2026 13:43:34 +0800 Subject: [PATCH 1/2] Remove 'src' from cleanup command in post_install.lua --- hooks/post_install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post_install.lua b/hooks/post_install.lua index 834b971..6b32632 100644 --- a/hooks/post_install.lua +++ b/hooks/post_install.lua @@ -111,6 +111,6 @@ function PLUGIN:PostInstall(ctx) end -- Clean up Lua source files (keep only bin, lib, include, man, share, luarocks) - local cleanCmd = string.format("cd '%s' && rm -rf src doc Makefile README install 2>/dev/null", sdkPath) + local cleanCmd = string.format("cd '%s' && rm -rf doc Makefile README install 2>/dev/null", sdkPath) os.execute(cleanCmd) end From 728784902eded7c7e413a3b435de26375d63ccab Mon Sep 17 00:00:00 2001 From: yeshan333 Date: Sat, 25 Apr 2026 13:53:27 +0800 Subject: [PATCH 2/2] Update hooks/post_install.lua Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- hooks/post_install.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post_install.lua b/hooks/post_install.lua index 6b32632..a2b596f 100644 --- a/hooks/post_install.lua +++ b/hooks/post_install.lua @@ -110,7 +110,7 @@ function PLUGIN:PostInstall(ctx) os.execute(string.format("rm -rf '%s/luarocks.tar.gz' '%s/luarocks-'*", sdkPath, sdkPath)) end - -- Clean up Lua source files (keep only bin, lib, include, man, share, luarocks) + -- Clean up Lua source files (keep bin, lib, include, man, share, src, luarocks) local cleanCmd = string.format("cd '%s' && rm -rf doc Makefile README install 2>/dev/null", sdkPath) os.execute(cleanCmd) end