summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgycherish <[email protected]>2026-08-14 22:32:09 -0700
committergycherish <[email protected]>2026-08-14 22:32:09 -0700
commitedd2071661290b88c6717aab65eb9eb589b8be34 (patch)
treeb76e78276f52f6b18d9a5de5307dbb5adec41788
parent8bf5187281f1dcd3ea2f1cc41b1db5e9cf2cbc07 (diff)
fix(pack): recognize x86_64 when passing -arch to wix
Only msvc spells the architecture "x64"; under mingw it is "x86_64", so no -arch reached wix and it built an x86 package out of x64 binaries. In an x86 package every program files property, ProgramFiles64Folder included, resolves to Program Files (x86), and that is where the install lands.
-rw-r--r--xmake/plugins/pack/wix/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/wix/main.lua b/xmake/plugins/pack/wix/main.lua
index e12461883..f91c15273 100644
--- a/xmake/plugins/pack/wix/main.lua
+++ b/xmake/plugins/pack/wix/main.lua
@@ -326,7 +326,7 @@ function _pack_wix(wix, package)
table.join2(argv, {"-ext", "WixToolset.UI.wixext"})
table.join2(argv, {"-o", package:outputfile()})
- if package:arch() == "x64" then
+ if package:is_arch("x64", "x86_64") then
table.join2(argv, {"-arch", "x64"})
elseif package:arch() == "x86" then
table.join2(argv, {"-arch", "x86"})