Skip to content

Commit c64b51c

Browse files
jenkins: add ARM64 Windows MSI
Refs: nodejs/node#45943
1 parent d49bf8a commit c64b51c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

jenkins/scripts/windows/compile.cmd

+11-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@ if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_mai
1919

2020
:: Call vcbuild
2121
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+
)
2333
set "VCBUILD_EXTRA_ARGS=arm64 release"
2434
) else if "%nodes:~-4%" == "-x86" (
2535
set "VCBUILD_EXTRA_ARGS=x86 %VCBUILD_EXTRA_ARGS%"

0 commit comments

Comments
 (0)