Skip to content

Commit f328bb0

Browse files
committedSep 5, 2024·
improve extract for windows
1 parent f612170 commit f328bb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎xmake/modules/utils/archive/extract.lua

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ function _extract_using_7z(archivefile, outputdir, extension, opt)
132132
-- init argv
133133
local argv = {"x", "-y", archivefile}
134134

135+
-- disable to store symlinks on windows
136+
if is_host("windows") then
137+
table.insert(argv, "-snl-")
138+
end
139+
135140
-- ensure output directory
136141
if not os.isdir(outputdir) then
137142
os.mkdir(outputdir)

0 commit comments

Comments
 (0)
Please sign in to comment.