mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-11 06:18:39 +00:00
PLS
This commit is contained in:
parent
9349b12a60
commit
9c75bd83aa
1 changed files with 3 additions and 3 deletions
|
@ -11,9 +11,7 @@ public static class VersionHelper
|
|||
try
|
||||
{
|
||||
CommitHash = ResourceHelper.ReadManifestFile("gitVersion.txt");
|
||||
string DirtyVerString = (IsDirty) ? "-dirty" : "";
|
||||
string _Branch = ResourceHelper.ReadManifestFile("gitBranch.txt");
|
||||
Branch = $"{_Branch}{DirtyVerString}";
|
||||
Branch = ResourceHelper.ReadManifestFile("gitBranch.txt");
|
||||
string rawRevision = ResourceHelper.ReadManifestFile("gitRevCount.txt");
|
||||
Revision = (Branch == "main") ? $"r{rawRevision}" : $"{Branch}_r{rawRevision}";
|
||||
|
||||
|
@ -52,6 +50,8 @@ public static class VersionHelper
|
|||
"Please make sure you are properly disclosing the source code to any users who may be using this instance.",
|
||||
LogArea.Startup
|
||||
);
|
||||
string rawRevision = ResourceHelper.ReadManifestFile("gitRevCount.txt");
|
||||
Revision = $"{Branch}-dirty_r{rawRevision}";
|
||||
CanCheckForUpdates = false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue