diff options
| author | Martin Ridgers <[email protected]> | 2022-01-20 09:28:55 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-01-20 10:22:07 +0100 |
| commit | d9727cf458cd2c50128a5f79f521253c81f281e2 (patch) | |
| tree | 4be464fcbb6e860160aef62e86edf55d2b0acfb4 /bundle.lua | |
| parent | Refactored 'xmake bundle' so steps can be reused on other platforms (diff) | |
| download | zen-d9727cf458cd2c50128a5f79f521253c81f281e2.tar.xz zen-d9727cf458cd2c50128a5f79f521253c81f281e2.zip | |
Added support for using info-zip with 'xmake bundle'
Diffstat (limited to 'bundle.lua')
| -rw-r--r-- | bundle.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bundle.lua b/bundle.lua index 3ab6016a8..0802ba2c8 100644 --- a/bundle.lua +++ b/bundle.lua @@ -58,6 +58,16 @@ local function _zip(zip_path, ...) end print("7z not found") + import("detect.tools.find_zip") + cmd = find_zip() + if cmd then + local ret = _exec("zip", "--junk-paths", zip_path, ...) + if ret > 0 then + raise("Received error from zip") + end + return + end + print("zip not found") raise("Unable to find a suitable zip tool") end |