File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,17 @@ if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_mai
19
19
20
20
:: Call vcbuild
21
21
if " %nodes:~-6 % " == " -arm64" (
22
- :: Building MSI is not yet supported for ARM64
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
+ )
23
33
set " VCBUILD_EXTRA_ARGS = arm64 release"
24
34
) else if " %nodes:~-4 % " == " -x86" (
25
35
set " VCBUILD_EXTRA_ARGS = x86 %VCBUILD_EXTRA_ARGS% "
You can’t perform that action at this time.
0 commit comments