From 9c9e227ff8dc0f7bcf111c6b37f9ee7046d6a465 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 19 Nov 2023 22:43:36 +0800 Subject: [PATCH] improve nsis --- packages/n/nsis/xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/n/nsis/xmake.lua b/packages/n/nsis/xmake.lua index 89fc9becf95..84451fb106e 100644 --- a/packages/n/nsis/xmake.lua +++ b/packages/n/nsis/xmake.lua @@ -14,7 +14,8 @@ package("nsis") on_fetch(function (package, opt) if opt.system then - return package:find_tool("makensis", table.join({check = "/CMDHELP"}, opt)) + -- we need return false to disable fallback fetch, it will stuck when call `nsis --version` + return package:find_tool("makensis", table.join({check = "/CMDHELP"}, opt)) or false end end)