Skip to content

Commit

Permalink
jenkins: add ARM64 Windows MSI
Browse files Browse the repository at this point in the history
Refs: nodejs/node#45943
PR-URL: #3251
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Ulises Gascón <UlisesGascon@users.noreply.github.com>
  • Loading branch information
StefanStojanovic committed Mar 27, 2023
1 parent d428b08 commit 3aa5e1b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions jenkins/scripts/windows/compile.cmd
Expand Up @@ -19,8 +19,17 @@ if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_mai

:: Call vcbuild
if "%nodes:~-6%" == "-arm64" (
:: Building MSI is not yet supported for ARM64
set "VCBUILD_EXTRA_ARGS=arm64 release"
:: Building MSI is not yet supported for ARM64 with WiX 3.
:: Since PR with WiX 4 migration changed folder structure,
:: this check can determine which WiX is used for the MSI.
:: Refs: https://github.com/nodejs/node/pull/45943
if exist tools\msvs\msi\nodemsi.wixproj (
:: WiX 3 - doesn't build ARM64 MSI
set "VCBUILD_EXTRA_ARGS=arm64 release"
) else (
:: WiX 4 - builds ARM64 MSI
set "VCBUILD_EXTRA_ARGS=arm64 %VCBUILD_EXTRA_ARGS%"
)
) else if "%nodes:~-4%" == "-x86" (
set "VCBUILD_EXTRA_ARGS=x86 %VCBUILD_EXTRA_ARGS%"
) else (
Expand Down

0 comments on commit 3aa5e1b

Please sign in to comment.