diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index baaea90..ec4a7a6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -162,7 +162,7 @@ jobs: files: | artifacts/velopack/win-x64-stable/*.exe artifacts/velopack/win-x64-stable/*.zip - name: v${{ gitea.ref_name }} + name: ${{ gitea.ref_name }} body: | Release ${{ gitea.ref_name }} diff --git a/src/RgbLedStripController/MainWindow.xaml b/src/RgbLedStripController/MainWindow.xaml index 2b8ec35..719f625 100644 --- a/src/RgbLedStripController/MainWindow.xaml +++ b/src/RgbLedStripController/MainWindow.xaml @@ -598,9 +598,9 @@ FontSize="12" Foreground="{StaticResource MutedTextBrush}"> - - + diff --git a/src/RgbLedStripController/MainWindow.xaml.cs b/src/RgbLedStripController/MainWindow.xaml.cs index 762f06f..63f46de 100644 --- a/src/RgbLedStripController/MainWindow.xaml.cs +++ b/src/RgbLedStripController/MainWindow.xaml.cs @@ -834,13 +834,8 @@ public partial class MainWindow : Window, INotifyPropertyChanged private static string GetApplicationVersion() { var assembly = Assembly.GetExecutingAssembly(); - var informationalVersion = assembly.GetCustomAttribute()?.InformationalVersion; - if (!string.IsNullOrWhiteSpace(informationalVersion)) - { - return informationalVersion; - } - - return assembly.GetName().Version?.ToString(3) ?? "0.0.0"; + var version = assembly.GetName().Version; + return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "0.0.0"; } private bool SetProperty(ref T field, T value, [CallerMemberName] string? propertyName = null)