diff options
| author | ruki <[email protected]> | 2024-08-21 23:36:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-21 23:36:25 +0800 |
| commit | de0ade770bc66add05cd3b654acf50bc8b17fe35 (patch) | |
| tree | e088183992b580da9a23ac741a50b62d23432080 /xmake/modules/utils/archive/archive.lua | |
| parent | 7f4a28767f1a2e9a9139a58e176c5032d157f032 (diff) | |
add xmz archive
Diffstat (limited to 'xmake/modules/utils/archive/archive.lua')
| -rw-r--r-- | xmake/modules/utils/archive/archive.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/modules/utils/archive/archive.lua b/xmake/modules/utils/archive/archive.lua index f91aa9d7f..804229638 100644 --- a/xmake/modules/utils/archive/archive.lua +++ b/xmake/modules/utils/archive/archive.lua @@ -22,8 +22,15 @@ import("core.base.option") import("lib.detect.find_file") import("lib.detect.find_tool") +import("archive_xmz") import("extension", {alias = "get_archive_extension"}) +-- archive archivefile using xmake compress module +function _archive_using_xmz(archivefile, inputfiles, extension, opt) + archive_xmz(archivefile, inputfiles, opt) + return true +end + -- archive archivefile using zip function _archive_using_zip(archivefile, inputfiles, extension, opt) @@ -312,7 +319,7 @@ function _archive_tarfile(archivefile, tarfile, opt) return _archive(archivefile, tarfile, extension, archivers[extension], opt) end --- archive archive file +-- archive file -- -- @param archivefile the archive file. e.g. *.tar.gz, *.zip, *.7z, *.tar.bz2, .. -- @param inputfiles the input file or directory or list @@ -334,6 +341,7 @@ function main(archivefile, inputfiles, opt) , [".tar"] = {_archive_using_tar} , [".tar.gz"] = {_archive_using_tar, _archive_using_gzip} , [".tar.xz"] = {_archive_using_tar, _archive_using_xz} + , [".xmz"] = {_archive_using_xmz} } -- get extension |
