Skip to content

Commit

Permalink
Bugfix: Fix build target.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Jun 26, 2020
1 parent faed01e commit aec43ac
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,21 @@ switch ($Target) {
}
"Snap-Installer" {
Invoke-Clean-Build
Invoke-Build-Snap-Installer -DotnetRid $DotnetRid
$Rid = $DotnetRid
if($Rid -eq "any") {
switch($OSPlatform) {
"Windows" {
$Rid = "win-x64"
}
"Unix" {
$Rid = "linux-x64"
}
Default {
Invoke-Exit "Unsupported os: $OSPlatform"
}
}
}
Invoke-Build-Snap-Installer -DotnetRid $Rid
Invoke-Summary
}
"Snapx" {
Expand Down

0 comments on commit aec43ac

Please sign in to comment.