Merge branch 'main' into 3dSkinRenderer

This commit is contained in:
miku-666
2024-05-26 15:54:27 +02:00
2 changed files with 8 additions and 4 deletions

View File

@@ -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}";
}
}
}

View File

@@ -51,7 +51,7 @@
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
<DefineConstants>$(DefineConstants);TRACE;RELEASE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>