mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-23 17:59:06 +00:00
document envver stuff
This commit is contained in:
parent
b029831d0c
commit
8f861ff335
1 changed files with 9 additions and 2 deletions
|
@ -71,9 +71,16 @@ public static class VersionHelper
|
||||||
|
|
||||||
public static string CommitHash { get; set; }
|
public static string CommitHash { get; set; }
|
||||||
public static string Branch { get; set; }
|
public static string Branch { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// The amount of commits that currently exist in the local copy of the Git repository.
|
||||||
|
/// Not reliable as versioning if shallow cloning is used, with using the hash of the current commit being more reliable in that case.
|
||||||
|
/// </summary>
|
||||||
public static string OrdinalCommitNumber { get; set; }
|
public static string OrdinalCommitNumber { get; set; }
|
||||||
public static string EnvVer => $"{ServerConfiguration.Instance.Customization.EnvironmentName} {OrdinalCommitNumber}"; // what's sent as lbpEnvVer to game
|
/// <summary>
|
||||||
public static string FullVersion => $"Project Lighthouse {Branch}@{CommitHash} {Build} ({(ServerConfiguration.Instance.Customization.UseLessReliableNumericRevisionNumberingSystem ? EnvVer : ServerConfiguration.Instance.Customization.EnvironmentName)})";
|
/// The server's branding (environment version) to show to LBP clients. Shows the environment name next to the revision.
|
||||||
|
/// </summary>
|
||||||
|
public static string EnvVer => $"{ServerConfiguration.Instance.Customization.EnvironmentName} {OrdinalCommitNumber}";
|
||||||
|
public static string FullVersion => $"Project Lighthouse {ServerConfiguration.Instance.Customization.EnvironmentName} {Branch}@{CommitHash} {Build}";
|
||||||
public static bool IsDirty => CommitHash.EndsWith("-dirty") || CommitsOutOfDate != 1 || CommitHash == "invalid" || Branch == "invalid";
|
public static bool IsDirty => CommitHash.EndsWith("-dirty") || CommitsOutOfDate != 1 || CommitHash == "invalid" || Branch == "invalid";
|
||||||
public static int CommitsOutOfDate { get; set; }
|
public static int CommitsOutOfDate { get; set; }
|
||||||
public static bool CanCheckForUpdates { get; set; }
|
public static bool CanCheckForUpdates { get; set; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue