From edd2071661290b88c6717aab65eb9eb589b8be34 Mon Sep 17 00:00:00 2001 From: gycherish Date: Fri, 14 Aug 2026 22:32:09 -0700 Subject: 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. --- xmake/plugins/pack/wix/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}) -- cgit v1.3.1