浏览代码

Detect binarycreator on system path (#2362)

Yiheng Wu 2 年之前
父节点
当前提交
9ae52a09f6
共有 1 个文件被更改,包括 6 次插入0 次删除
  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