From 324888041ba9f6a2e591fd7f8e9782ab0a655dad Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 1 Oct 2020 21:01:46 +0800 Subject: fix find unzip for requires --- xmake/actions/require/impl/environment.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/actions/require/impl/environment.lua b/xmake/actions/require/impl/environment.lua index 5adece2ca..7104d1e8e 100644 --- a/xmake/actions/require/impl/environment.lua +++ b/xmake/actions/require/impl/environment.lua @@ -37,9 +37,9 @@ function enter() -- set search paths of toolchains environment.enter("toolchains") - -- unzip is necessary - if not find_tool("unzip") then - raise("unzip not found! we need install it first") + -- unzip or 7zip is necessary + if not find_tool("unzip") and not find_tool("7z") then + raise("unzip or 7zip not found! we need install it first") end -- enter the environments of git and 7z -- cgit v1.3.1