Kaynağa Gözat

qtifw: use 7z on windows but not on sub_host msys (#2378)

Darcy Shen 2 yıl önce
ebeveyn
işleme
7dddd612be
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      packages/q/qtifw/xmake.lua

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

@@ -30,7 +30,12 @@ package("qtifw")
         local target = "desktop"
         local version = package:version()
         local installdir = package:installdir()
-        os.vrunv("aqt", {"install-tool", "-O", installdir, host, target, "tools_ifw", "qt.tools.ifw." .. version:major() .. version:minor()})
+        local qtifw_version = "qt.tools.ifw." .. version:major() .. version:minor()
+        if is_host("windows") and (not is_subhost("msys")) then
+            os.vrunv("aqt", {"install-tool", "-O", installdir, host, target, "tools_ifw", qtifw_version, "--external", "7z"})
+        else
+            os.vrunv("aqt", {"install-tool", "-O", installdir, host, target, "tools_ifw", qtifw_version})
+        end
         os.mv(path.join(installdir, "Tools", "*", version:major() .. "." .. version:minor(), "*"), installdir)
         os.rmdir(path.join(installdir, "Tools"))
     end)