소스 검색

improve nsis

ruki 1 년 전
부모
커밋
9c9e227ff8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/n/nsis/xmake.lua

+ 2 - 1
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)