From 62e1bee82e3ecb2a29f245cbe20b8ea22bb8c171 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Thu, 29 Dec 2022 19:10:49 +0400 Subject: Interim build configuration' --- NesTiler.sln | 9 +++++++++ NesTiler/NesTiler.csproj | 8 ++++++++ NesTiler/Program.cs | 18 +++++++++++++++--- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/NesTiler.sln b/NesTiler.sln index 1807775..476b9d1 100644 --- a/NesTiler.sln +++ b/NesTiler.sln @@ -14,23 +14,32 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Interim|Any CPU = Interim|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Interim|Any CPU.ActiveCfg = Interim|Any CPU + {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Interim|Any CPU.Build.0 = Interim|Any CPU {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Release|Any CPU.ActiveCfg = Release|Any CPU {DC2EA2A9-F7BB-450B-8DD6-F9EBB64E0C9A}.Release|Any CPU.Build.0 = Release|Any CPU {516333E3-42CF-4981-8F8D-3B0405028DC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {516333E3-42CF-4981-8F8D-3B0405028DC8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {516333E3-42CF-4981-8F8D-3B0405028DC8}.Interim|Any CPU.ActiveCfg = Release|Any CPU + {516333E3-42CF-4981-8F8D-3B0405028DC8}.Interim|Any CPU.Build.0 = Release|Any CPU {516333E3-42CF-4981-8F8D-3B0405028DC8}.Release|Any CPU.ActiveCfg = Release|Any CPU {516333E3-42CF-4981-8F8D-3B0405028DC8}.Release|Any CPU.Build.0 = Release|Any CPU {F699B355-7010-4425-9AD3-D9355690B199}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F699B355-7010-4425-9AD3-D9355690B199}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F699B355-7010-4425-9AD3-D9355690B199}.Interim|Any CPU.ActiveCfg = Release|Any CPU + {F699B355-7010-4425-9AD3-D9355690B199}.Interim|Any CPU.Build.0 = Release|Any CPU {F699B355-7010-4425-9AD3-D9355690B199}.Release|Any CPU.ActiveCfg = Release|Any CPU {F699B355-7010-4425-9AD3-D9355690B199}.Release|Any CPU.Build.0 = Release|Any CPU {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Interim|Any CPU.ActiveCfg = Release|Any CPU + {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Interim|Any CPU.Build.0 = Release|Any CPU {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Release|Any CPU.ActiveCfg = Release|Any CPU {C3872938-28AA-4B75-BA9D-0A1A80154D57}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection diff --git a/NesTiler/NesTiler.csproj b/NesTiler/NesTiler.csproj index 58e263b..fe1fd13 100644 --- a/NesTiler/NesTiler.csproj +++ b/NesTiler/NesTiler.csproj @@ -10,14 +10,22 @@ LICENSE README.md false + Debug;Release;Interim full true + $(DefineConstants)TRACE none false + $(DefineConstants)TRACE + + + none + false + $(DefineConstants)TRACE diff --git a/NesTiler/Program.cs b/NesTiler/Program.cs index 5b862e4..193caf9 100644 --- a/NesTiler/Program.cs +++ b/NesTiler/Program.cs @@ -14,16 +14,28 @@ namespace com.clusterrr.Famicom.NesTiler { public class Program { + public const string APP_NAME = "NesTiler"; public const string REPO_PATH = "https://github.com/ClusterM/NesTiler"; public static DateTime BUILD_TIME = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).AddSeconds(long.Parse(Properties.Resources.buildtime.Trim())); public const int MAX_BG_COLOR_AUTODETECT_ITERATIONS = 5; static void PrintAppInfo() { - Console.WriteLine($"NesTiler v{Assembly.GetExecutingAssembly()?.GetName()?.Version?.Major}.{Assembly.GetExecutingAssembly()?.GetName()?.Version?.Minor}"); + var version = Assembly.GetExecutingAssembly()?.GetName()?.Version; + var versionStr = $"{version?.Major}.{version?.Minor}{((version?.Build ?? 0) > 0 ? $"{(char)((byte)'a' + version!.Build)}" : "")}"; + Console.WriteLine($"{APP_NAME} " + +#if !INTERIM + $"v{versionStr}" +#else + "intrerim version" +#endif #if DEBUG - Console.WriteLine($" Commit {Properties.Resources.gitCommit} @ {REPO_PATH}"); - Console.WriteLine($" Debug version, build time: {BUILD_TIME.ToLocalTime()}"); + + " (debug)" +#endif + ); +#if INTERIM || DEBUG + Console.WriteLine($" Commit: {Properties.Resources.gitCommit} @ {REPO_PATH}"); + Console.WriteLine($" Build time: {BUILD_TIME.ToLocalTime()}"); #endif Console.WriteLine(" (c) Alexey 'Cluster' Avdyukhin / https://clusterrr.com / clusterrr@clusterrr.com"); Console.WriteLine(""); -- cgit v1.2.3