Skip to content

Commit

Permalink
Make macOS version description more palatable
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jul 7, 2024
1 parent 71bbde6 commit 86b6f1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dotnet-trx/TrxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ static void GitHubReport(Summary summary, StringBuilder details)
sb.AppendLine();
}

var os = RuntimeInformation.OSDescription;
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
// Otherwise we end up with this, yuck: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:39 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_VMAPPLE
os = $"macOS {Environment.OSVersion.VersionString}";

sb.AppendLine(
$"from [dotnet-trx](https://github.com/devlooped/dotnet-trx) with [:purple_heart:](https://github.com/sponsors/devlooped) via {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSDescription}");

Expand Down

0 comments on commit 86b6f1f

Please sign in to comment.