From cff1394b9460490723447c8968a8cd1b72fc068e Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Sun, 26 May 2024 15:41:09 +0200 Subject: [PATCH] CreditsForm - Show build info no matter what build config --- PCK-Studio/Forms/CreditsForm.cs | 10 +++++++--- PCK-Studio/PckStudio.csproj | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PCK-Studio/Forms/CreditsForm.cs b/PCK-Studio/Forms/CreditsForm.cs index e6b18df4..df2c386c 100644 --- a/PCK-Studio/Forms/CreditsForm.cs +++ b/PCK-Studio/Forms/CreditsForm.cs @@ -10,13 +10,17 @@ namespace PckStudio.Forms public CreditsForm() { InitializeComponent(); + string buildConfig = ""; #if BETA - buildLabel.Text = $"Build Config: Beta\nBuild Version: {ApplicationBuildInfo.BetaBuildVersion}\n Branch: {CommitInfo.BranchName}"; + buildConfig = "Beta"; #elif DEBUG - buildLabel.Text = $"Build Config: Debug\nBranch: {CommitInfo.BranchName}\nCommit Id: {CommitInfo.CommitHash}"; + buildConfig = "Debug"; +#elif RELEASE + buildConfig = "Release"; #else - buildLabel.Text = string.Empty; + buildConfig = "unknown"; #endif + buildLabel.Text = $"Verion: {Application.ProductVersion}\nBuild Config: {buildConfig}\nBranch: {CommitInfo.BranchName}@{CommitInfo.CommitHash}"; } } } diff --git a/PCK-Studio/PckStudio.csproj b/PCK-Studio/PckStudio.csproj index e6c073b0..2332b391 100644 --- a/PCK-Studio/PckStudio.csproj +++ b/PCK-Studio/PckStudio.csproj @@ -51,7 +51,7 @@ none true bin\Release\ - $(DefineConstants);TRACE + $(DefineConstants);TRACE;RELEASE prompt 4 true