diff --git a/BililiveRecorder.WPF/Pages/AboutPage.xaml b/BililiveRecorder.WPF/Pages/AboutPage.xaml
index 5652cd0..4aaba86 100644
--- a/BililiveRecorder.WPF/Pages/AboutPage.xaml
+++ b/BililiveRecorder.WPF/Pages/AboutPage.xaml
@@ -45,12 +45,8 @@
-
-
-
-
-
-
+
+
@@ -77,7 +73,7 @@
-
+
diff --git a/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs b/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs
index 3628d37..1b8917a 100644
--- a/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs
+++ b/BililiveRecorder.WPF/Pages/AboutPage.xaml.cs
@@ -1,3 +1,5 @@
+using System.Text.RegularExpressions;
+
namespace BililiveRecorder.WPF.Pages
{
///
@@ -8,6 +10,15 @@ namespace BililiveRecorder.WPF.Pages
public AboutPage()
{
this.InitializeComponent();
+
+ if (!string.IsNullOrEmpty(GitVersionInformation.CommitDate))
+ {
+ var match = Regex.Match(GitVersionInformation.CommitDate, @"^(?\d{4})-(?\d{2})-(?\d{2})$");
+ if (match.Success)
+ {
+ this.CopyrightTextBlock.Text = $" © {match.Groups["year"].Value} Genteure";
+ }
+ }
}
}
}