Explorar o código

Detect binarycreator on system path (#2362)

Yiheng Wu %!s(int64=2) %!d(string=hai) anos
pai
achega
9ae52a09f6
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      packages/q/qtifw/xmake.lua

+ 6 - 0
packages/q/qtifw/xmake.lua

@@ -8,6 +8,12 @@ package("qtifw")
 
     add_deps("aqt")
 
+    on_fetch(function (package, opt)
+        if opt.system then
+            return import("lib.detect.find_tool")("binarycreator", {check = "--help"})
+        end
+    end)
+
     on_install("@windows", "@msys", "@macosx", function (package)
 
         local host