From f328bb0d518540b72a8289d002718e1baaa8b840 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 5 Sep 2024 22:32:33 +0800 Subject: improve extract for windows --- xmake/modules/utils/archive/extract.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmake/modules/utils/archive/extract.lua b/xmake/modules/utils/archive/extract.lua index ff6d20e16..b5cb79033 100644 --- a/xmake/modules/utils/archive/extract.lua +++ b/xmake/modules/utils/archive/extract.lua @@ -132,6 +132,11 @@ function _extract_using_7z(archivefile, outputdir, extension, opt) -- init argv local argv = {"x", "-y", archivefile} + -- disable to store symlinks on windows + if is_host("windows") then + table.insert(argv, "-snl-") + end + -- ensure output directory if not os.isdir(outputdir) then os.mkdir(outputdir) -- cgit v1.3.1