From 40b76cc84d0defbf28b5b0726f4e693f7b7b9578 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 7 Apr 2021 12:03:03 +0200 Subject: [PATCH] [wasm] Set __DistroRid on Windows to browser-wasm --- eng/build.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/build.ps1 b/eng/build.ps1 index 7da4e1869f23f..f93182c5bd89e 100644 --- a/eng/build.ps1 +++ b/eng/build.ps1 @@ -263,7 +263,11 @@ foreach ($config in $configuration) { $argumentsWithConfig = $arguments + " -configuration $((Get-Culture).TextInfo.ToTitleCase($config))"; foreach ($singleArch in $arch) { $argumentsWithArch = "/p:TargetArchitecture=$singleArch " + $argumentsWithConfig - $env:__DistroRid="win-$singleArch" + if ($os -eq "Browser") { + $env:__DistroRid="browser-$singleArch" + } else { + $env:__DistroRid="win-$singleArch" + } Invoke-Expression "& `"$PSScriptRoot/common/build.ps1`" $argumentsWithArch" if ($lastExitCode -ne 0) { $failedBuilds += "Configuration: $config, Architecture: $singleArch"