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

github.com/ClusterM/famicom-dumper-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2023-01-15 18:54:35 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2023-01-15 18:54:35 +0300
commit845e7451a4ade86086b4eb8bcd9a37c33db76e2d (patch)
treed5651a673a5b2b47b015ab552a0ee18e2814b87a
parentb5b7773a9acf3afa4c7b94814dbc05ceb15e5b4a (diff)
Interim builds
-rw-r--r--.github/workflows/build-test.yml2
-rw-r--r--FamicomDumper/FamicomDumper.csproj7
-rw-r--r--FamicomDumper/Program.cs18
-rw-r--r--FamicomDumperConnection/FamicomDumperConnection.csproj1
-rw-r--r--famicom-dumper.sln4
5 files changed, 27 insertions, 5 deletions
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 0602eaf..d1be9ed 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -33,7 +33,7 @@ jobs:
APP_NAME: famicom-dumper
PROJECT_PATH: FamicomDumper
OUTPUT_DIR: output
- CONFIGURATION: Debug
+ CONFIGURATION: Interim
OUTPUT_SUBDIR: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.sc }}
OUTPUT_FILE: famicom-dumper-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.sc == 'self-contained' && '-self-contained' || '' }}.${{ matrix.os == 'win' && 'zip' || 'tar.gz' }}
steps:
diff --git a/FamicomDumper/FamicomDumper.csproj b/FamicomDumper/FamicomDumper.csproj
index c25f8dd..0d3fd67 100644
--- a/FamicomDumper/FamicomDumper.csproj
+++ b/FamicomDumper/FamicomDumper.csproj
@@ -14,6 +14,7 @@
<PublishSingleFile>true</PublishSingleFile>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
+ <Configurations>Debug;Release;Interim</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -22,6 +23,12 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Interim|AnyCPU'">
+ <DebugType>full</DebugType>
+ <DebugSymbols>true</DebugSymbols>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
diff --git a/FamicomDumper/Program.cs b/FamicomDumper/Program.cs
index 72902e3..0352688 100644
--- a/FamicomDumper/Program.cs
+++ b/FamicomDumper/Program.cs
@@ -46,7 +46,7 @@ namespace com.clusterrr.Famicom.Dumper
{
public class Program
{
-
+ public const string APP_NAME = "Famicom Dumper Client";
public const string REPO_PATH = "https://github.com/ClusterM/famicom-dumper-client";
public const int DEFAULT_GRPC_PORT = 26673;
public static DateTime BUILD_TIME = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).AddSeconds(long.Parse(Properties.Resources.buildtime.Trim()));
@@ -54,10 +54,20 @@ namespace com.clusterrr.Famicom.Dumper
static int Main(string[] args)
{
var version = Assembly.GetExecutingAssembly()?.GetName()?.Version;
- Console.WriteLine($"Famicom Dumper Client v{version?.Major}.{version?.Minor}{((version?.Build ?? 0) > 0 ? $"{(char)((byte)'a' + version!.Build)}" : "")}");
+ 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("");
diff --git a/FamicomDumperConnection/FamicomDumperConnection.csproj b/FamicomDumperConnection/FamicomDumperConnection.csproj
index 39a80b4..c9a84b8 100644
--- a/FamicomDumperConnection/FamicomDumperConnection.csproj
+++ b/FamicomDumperConnection/FamicomDumperConnection.csproj
@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
+ <Configurations>Debug;Release</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
diff --git a/famicom-dumper.sln b/famicom-dumper.sln
index 45e268f..1aab8d5 100644
--- a/famicom-dumper.sln
+++ b/famicom-dumper.sln
@@ -10,15 +10,19 @@ 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
{28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Interim|Any CPU.ActiveCfg = Interim|Any CPU
+ {28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Interim|Any CPU.Build.0 = Interim|Any CPU
{28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28F0CF2B-C5F2-4BDD-99C2-EC28A2D5D70B}.Release|Any CPU.Build.0 = Release|Any CPU
{BF3EA23E-72F5-4757-AC09-97313B9F8754}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF3EA23E-72F5-4757-AC09-97313B9F8754}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BF3EA23E-72F5-4757-AC09-97313B9F8754}.Interim|Any CPU.ActiveCfg = Release|Any CPU
{BF3EA23E-72F5-4757-AC09-97313B9F8754}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF3EA23E-72F5-4757-AC09-97313B9F8754}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection