Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
沈浪熊猫儿 committed Jul 29, 2023
1 parent bd02e58 commit 8aa3dad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/q/qtifw/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(), "--external", "7z"})
local qtifw_version = "qt.tools.ifw." .. version:major() .. version:minor()
if is_host("windows") 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)
Expand Down

0 comments on commit 8aa3dad

Please sign in to comment.