Skip to content

Commit 42cbf26

Browse files
tristanlabellecompnerd
authored andcommitted
build.ps1: add call to Build-Installer
1 parent 15d1c34 commit 42cbf26

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

build.ps1

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,14 +1087,17 @@ function Consolidate-HostToolchainInstall()
10871087

10881088
function Build-Installer()
10891089
{
1090-
Build-WiXProject toolchain.wixproj -Arch $HostArch -Properties @{
1091-
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1092-
TOOLCHAIN_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1090+
# WiX v3 does not support ARM64
1091+
if ($HostArch -ne $ArchARM64)
1092+
{
1093+
Build-WiXProject toolchain.wixproj -Arch $HostArch -Properties @{
1094+
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1095+
TOOLCHAIN_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1096+
}
10931097
}
10941098

10951099
foreach ($Arch in $SDKArchs)
10961100
{
1097-
# WiX v3 does not support ARM64
10981101
if ($Arch -eq $ArchARM64)
10991102
{
11001103
continue
@@ -1111,15 +1114,17 @@ function Build-Installer()
11111114
}
11121115
}
11131116

1114-
Build-WiXProject devtools.wixproj -Arch $HostArch -Properties @{
1115-
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1116-
}
1117+
if ($HostArch -ne $ArchARM64)
1118+
{
1119+
Build-WiXProject devtools.wixproj -Arch $HostArch -Properties @{
1120+
DEVTOOLS_ROOT = "$($HostArch.ToolchainInstallRoot)\";
1121+
}
11171122

1118-
# TODO: The above wixprojs need to build
1119-
# Build-WiXProject installer.wixproj -Arch $HostArch -Properties @{
1120-
# OutputPath = "$BinaryCache\";
1121-
# MSI_LOCATION = "$($Arch.MSIRoot)\";
1122-
# }
1123+
Build-WiXProject installer.wixproj -Arch $HostArch -Properties @{
1124+
OutputPath = "$BinaryCache\";
1125+
MSI_LOCATION = "$($HostArch.MSIRoot)\";
1126+
}
1127+
}
11231128
}
11241129

11251130
#-------------------------------------------------------------------
@@ -1166,4 +1171,6 @@ Build-IndexStoreDB $HostArch
11661171
Build-Syntax $HostArch
11671172
Build-SourceKitLSP $HostArch
11681173

1174+
Build-Installer
1175+
11691176
Consolidate-HostToolchainInstall

0 commit comments

Comments
 (0)