From fdca3b2904d158ab22f402f647fb9c34eaf2e587 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 25 Feb 2025 22:56:58 +0800 Subject: fix 7z --- xmake/modules/utils/archive/extract.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index 111d598e2..edf75eaf8 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -101,11 +101,11 @@ end function _extract_using_7z(archivefile, outputdir, extension, opt) -- find 7z - local 7z = find_tool("7z") - if not 7z then + local z7 = find_tool("7z") + if not z7 then return false end - local program = 7z.program + local program = z7.program -- p7zip cannot extract other archive format on msys/cygwin, but it can extract .tgz -- https://github.com/xmake-io/xmake/issues/1575#issuecomment-898205462 -- cgit v1.3.1