fix: version display, footer link, release name
- 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:
3 files changed
+5
-10
No files matched your search
@@ -162,7 +162,7 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
artifacts/velopack/win-x64-stable/*.exe
|
artifacts/velopack/win-x64-stable/*.exe
|
||||||
artifacts/velopack/win-x64-stable/*.zip
|
artifacts/velopack/win-x64-stable/*.zip
|
||||||
name: v${{ gitea.ref_name }}
|
name: ${{ gitea.ref_name }}
|
||||||
body: |
|
body: |
|
||||||
Release ${{ gitea.ref_name }}
|
Release ${{ gitea.ref_name }}
|
||||||
|
|
||||||
|
|||||||
@@ -598,9 +598,9 @@
|
|||||||
FontSize="12"
|
FontSize="12"
|
||||||
Foreground="{StaticResource MutedTextBrush}">
|
Foreground="{StaticResource MutedTextBrush}">
|
||||||
<Run Text="Made by " />
|
<Run Text="Made by " />
|
||||||
<Hyperlink NavigateUri="https://fristy.net"
|
<Hyperlink NavigateUri="https://git.fristy.net/fristy/rgb-led-strip-controller"
|
||||||
RequestNavigate="FooterLinkClicked">
|
RequestNavigate="FooterLinkClicked">
|
||||||
<Run Text="@fristyxd" />
|
<Run Text="@fristy" />
|
||||||
</Hyperlink>
|
</Hyperlink>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
|
||||||
|
|||||||
@@ -834,13 +834,8 @@ public partial class MainWindow : Window, INotifyPropertyChanged
|
|||||||
private static string GetApplicationVersion()
|
private static string GetApplicationVersion()
|
||||||
{
|
{
|
||||||
var assembly = Assembly.GetExecutingAssembly();
|
var assembly = Assembly.GetExecutingAssembly();
|
||||||
var informationalVersion = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion;
|
var version = assembly.GetName().Version;
|
||||||
if (!string.IsNullOrWhiteSpace(informationalVersion))
|
return version != null ? $"{version.Major}.{version.Minor}.{version.Build}" : "0.0.0";
|
||||||
{
|
|
||||||
return informationalVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
return assembly.GetName().Version?.ToString(3) ?? "0.0.0";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool SetProperty<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
|
private bool SetProperty<T>(ref T field, T value, [CallerMemberName] string? propertyName = null)
|
||||||
|
|||||||
Reference in new issue
Block a user