Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions eng/tools/publish-tools/chocolatey/installps_template
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ $checksum_x64 = '$CHECKSUM_X64'

# Get-PackageParameters returns a hash table array of values
$pp = Get-PackageParameters
# If specifically asked for x64 or arm64, we use that
if ($pp.ContainsKey('x64'))

# If specifically asked for x86 or arm64, we use that
if ($pp.ContainsKey('x86'))
{
$url = $url_x64
$checksum = $checksum_x64
$url = $url_x86
$checksum = $checksum_x86
}
elseif ($pp.ContainsKey('arm64'))
{
Expand All @@ -24,9 +25,9 @@ elseif ($pp.ContainsKey('arm64'))
}
else
{
# By default, we want the x86 installer
$url = $url_x86
$checksum = $checksum_x86
# By default, we want the x64 installer
$url = $url_x64
$checksum = $checksum_x64
}

$packageArgs = @{
Expand Down
Loading