Experimental: no longer run in dev/staging dalamud when not Debug/ReleaseValidate

This commit is contained in:
RisaDev
2024-11-18 01:08:25 +03:00
parent 9c0b8b7ab0
commit 344dc52614
11 changed files with 124 additions and 18 deletions

View File

@@ -12,6 +12,8 @@ internal static class VersionHelper
public static bool IsDebug { get; private set; } = false;
public static bool IsValidate { get; private set; } = false;
static VersionHelper()
{
#if DEBUG
@@ -24,7 +26,14 @@ internal static class VersionHelper
if (ThisAssembly.Git.BaseTag.ToLowerInvariant().Contains("testing"))
IsTesting = true;
#if VALIDATE_BUILD
IsValidate = true;
#endif
if (IsTesting)
Version += " [TESTING BUILD]";
if (IsValidate)
Version += " [VALIDATE BUILD]";
}
}