File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,17 @@ if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_mai
1919
2020:: Call vcbuild
2121if " %nodes:~-6 % " == " -arm64" (
22- :: Building MSI is not yet supported for ARM64
23- set " VCBUILD_EXTRA_ARGS = arm64 release"
22+ :: Building MSI is not yet supported for ARM64 with WiX 3.
23+ :: Since PR with WiX 4 migration changed folder structure,
24+ :: this check can determine which WiX is used for the MSI.
25+ :: Refs: https://github.com/nodejs/node/pull/45943
26+ if exist tools\msvs\msi\nodemsi.wixproj (
27+ :: WiX 3 - doesn't build ARM64 MSI
28+ set " VCBUILD_EXTRA_ARGS = arm64 release"
29+ ) else (
30+ :: WiX 4 - builds ARM64 MSI
31+ set " VCBUILD_EXTRA_ARGS = arm64 %VCBUILD_EXTRA_ARGS% "
32+ )
2433) else if " %nodes:~-4 % " == " -x86" (
2534 set " VCBUILD_EXTRA_ARGS = x86 %VCBUILD_EXTRA_ARGS% "
2635) else (
You can’t perform that action at this time.
0 commit comments