fix: version display, footer link, release name
CI / test (push) Successful in 40s
CI / build (push) Successful in 1m9s
CI / release (push) Successful in 2m16s

- GetApplicationVersion: use AssemblyVersion instead of InformationalVersion
- Footer: @fristyxd -> @fristy, link to repo
- Release name: remove duplicate 'v' prefix (tag already has v)
This commit is contained in:
fristy committed 2026-09-05 03:57:26 +03:00
1 parent 54b42a2861
commit 4054837bfc
3 files changed
+5 -10

No files matched your search

+2 -2
View File
@@ -598,9 +598,9 @@
FontSize="12"
Foreground="{StaticResource MutedTextBrush}">
<Run Text="Made by " />
<Hyperlink NavigateUri="https://fristy.net"
<Hyperlink NavigateUri="https://git.fristy.net/fristy/rgb-led-strip-controller"
RequestNavigate="FooterLinkClicked">
<Run Text="@fristyxd" />
<Run Text="@fristy" />
</Hyperlink>
</TextBlock>
+2 -7
View File
@@ -834,13 +834,8 @@ public partial class MainWindow : Window, INotifyPropertyChanged
private static string GetApplicationVersion()
{
var assembly = Assembly.GetExecutingAssembly();
var informationalVersion = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.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<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)