Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NesTiler.git/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-12-29 18:10:49 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-12-29 18:10:49 +0300
commit62e1bee82e3ecb2a29f245cbe20b8ea22bb8c171 (patch)
tree83e454183a20a0ec73311945b73a600447d2e223
parent50415d2f3d130e164b09bf474ca1b40c656cd96d (diff)
Interim build configuration'
-rw-r--r--NesTiler.sln9
-rw-r--r--NesTiler/NesTiler.csproj8
-rw-r--r--NesTiler/Program.cs18
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 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<SelfContained>false</SelfContained>
+ <Configurations>Debug;Release;Interim</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
+ <DefineConstants>$(DefineConstants)TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
+ <DefineConstants>$(DefineConstants)TRACE</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Interim|AnyCPU'">
+ <DebugType>none</DebugType>
+ <DebugSymbols>false</DebugSymbols>
+ <DefineConstants>$(DefineConstants)TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<None Remove=".git" />
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("");