diff options
| author | ruki <[email protected]> | 2024-09-05 22:32:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-05 22:32:33 +0800 |
| commit | f328bb0d518540b72a8289d002718e1baaa8b840 (patch) | |
| tree | 158f3703438cac434ac1ada6b4fc18b871370e71 | |
| parent | f612170737b5a34828e79f84edf953ebb8b71be9 (diff) | |
improve extract for windows
| -rw-r--r-- | xmake/modules/utils/archive/extract.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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) |
