Updated ProgramInfo.BuildVersion to only return the version format

This commit is contained in:
miku-666
2023-04-25 18:15:02 +02:00
parent 4225372021
commit 4a41612188
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ namespace PckStudio
labelVersion.Text = "PCK Studio: " + Application.ProductVersion;
ChangelogRichTextBox.Text = Resources.CHANGELOG;
#if DEBUG
labelVersion.Text += Program.Info.BuildVersion + " " + Program.Info.LastCommitHash;
labelVersion.Text += $" (Debug build: {Program.Info.BuildVersion}@{Program.Info.LastCommitHash})";
#endif
pckFileTypeHandler = new Dictionary<PckFile.FileData.FileType, Action<PckFile.FileData>>(15)

View File

@@ -21,7 +21,7 @@ namespace PckStudio
{
// adopted Minecraft Java Edition Snapshot format (YYwWWn)
// to keep better track of work in progress features and builds
return string.Format("(Debug build #{0}w{1}{2})",
return string.Format("#{0}w{1}{2}",
date.ToString("yy"),
BuildCalendar.GetWeekOfYear(date, System.Globalization.CalendarWeekRule.FirstDay, DayOfWeek.Monday),
BuildType);