aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-09-09 09:01:55 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-09-09 09:01:55 -0500
commitb36d8286b1c227782ad7cb4278cab32b6abc6168 (patch)
tree09bfb2e7f3d454a5738f1874c091cac38a8e7174 /src
parent3549cb7677f49de0b28d8b4a0b192b2e45a0fcee (diff)
downloadslskd-b36d8286b1c227782ad7cb4278cab32b6abc6168.tar.gz
force version to 0.0.0.0 if defaulted
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 529388a1..ec672f23 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -89,7 +89,7 @@ namespace slskd
/// <remarks>
/// Inaccurate when running locally.
/// </remarks>
- public static Version AssemblyVersion { get; } = Assembly.GetExecutingAssembly().GetName().Version;
+ public static Version AssemblyVersion { get; } = Assembly.GetExecutingAssembly().GetName().Version.Equals(new Version(1,0,0,0)) ? new Version(0, 0, 0, 0) : Assembly.GetExecutingAssembly().GetName().Version;
/// <summary>
/// Gets the informational version of the application, including the git sha at the latest commit.
@@ -97,7 +97,7 @@ namespace slskd
/// <remarks>
/// Inaccurate when running locally.
/// </remarks>
- public static string InformationalVersion { get; } = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
+ public static string InformationalVersion { get; } = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion == "1.0.0" ? "0.0.0" : Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
/// <summary>
/// Gets the unique Id of this application invocation.