From d73c0ba2565a4be6623dae5d77b40b53ab45c14a Mon Sep 17 00:00:00 2001 From: Peter Rekdal Sunde Date: Mon, 17 Aug 2020 13:25:03 +0200 Subject: [PATCH] Enable R2R on Windows. --- bootstrap.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 07ad8acf..9d5c193c 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -220,9 +220,13 @@ function Invoke-Build-Snap-Installer { Get-Item $SnapInstallerDotnetBuildPublishDir | Remove-Item -Recurse -Force } + # R2R is only available on Windows. + $PublishReadyToRun = ($Rid.StartsWith("win-")) -and ($Configuration -eq "Debug" ? "False" : "True") + Invoke-Command-Colored $CommandDotnet @( "publish $SnapInstallerCsProj" "/p:PublishTrimmed=" + ($Configuration -eq "Debug" ? "False" : "True") + "/p:PublishReadyToRun=" + $PublishReadyToRun "/p:Version=$Version" "/p:SnapRid=$Rid" "--runtime $Rid"