Skip to content

Commit

Permalink
Fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
aelij committed Dec 9, 2023
1 parent e9ca9be commit e9b3329
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/CreatePackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function Build-Package($PackageName, $RuntimeIdentifier) {
}

if ($IsMacOS) {
# Build-Package -PackageName 'macos-x64' -RuntimeIdentifier 'osx-x64'
# Build-Package -PackageName 'macos-arm64' -RuntimeIdentifier 'osx-arm64'
Build-Package -PackageName 'macos-x64' -RuntimeIdentifier 'osx-x64'
Build-Package -PackageName 'macos-arm64' -RuntimeIdentifier 'osx-arm64'
Build-Package -PackageName 'linux-x64' -RuntimeIdentifier 'linux-x64'
}
elseif ($IsWindows) {
Expand Down
8 changes: 5 additions & 3 deletions src/RoslynPad.Common.UI/ViewModels/MainViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ public string WindowTitle
{
get
{
var currentVersion = s_currentVersion.Minor <= 0 && s_currentVersion.Build <= 0
? s_currentVersion.Major.ToString(CultureInfo.InvariantCulture)
: s_currentVersion.ToString();
var currentVersion = s_currentVersion switch {
{ Minor: <= 0, Build: <= 0 } => s_currentVersion.Major.ToString(CultureInfo.InvariantCulture),
{ Build: <= 0 } => $"{s_currentVersion.Major}.{s_currentVersion.Minor}",
_ => s_currentVersion.ToString()
};
return "RoslynPad " + currentVersion;
}
}
Expand Down

0 comments on commit e9b3329

Please sign in to comment.