Update BuildGeneratorEditorWindow.cs

This commit is contained in:
Syntriax 2025-01-12 23:44:34 +03:00
parent 07b34535fb
commit b52769443e

View File

@ -50,20 +50,22 @@ public class BuildGeneratorEditorWindow : EditorWindow
EditorGUILayout.Space();
if (GUILayout.Button($"Push All")) { GitProcess.Push(); GitProcess.PushTags(); }
// EditorGUILayout.BeginHorizontal();
// if (IncrementButton("Major", versionDefinition.IncreaseMajor()))
// CommitVersion(versionDefinition.IncreaseMajor());
EditorGUILayout.Space();
EditorGUILayout.LabelField("Force New Version");
EditorGUILayout.BeginHorizontal();
if (IncrementButton("Major", versionDefinition.IncreaseMajor()))
CommitVersion(versionDefinition.IncreaseMajor());
// if (IncrementButton("Minor", versionDefinition.IncreaseMinor()))
// CommitVersion(versionDefinition.IncreaseMinor());
if (IncrementButton("Minor", versionDefinition.IncreaseMinor()))
CommitVersion(versionDefinition.IncreaseMinor());
// if (IncrementButton("Patch", versionDefinition.IncreasePatch()))
// CommitVersion(versionDefinition.IncreasePatch());
if (IncrementButton("Patch", versionDefinition.IncreasePatch()))
CommitVersion(versionDefinition.IncreasePatch());
// if (IncrementButton("Release Candidate", versionDefinition.IncreaseReleaseCandidate()))
// CommitVersion(versionDefinition.IncreaseReleaseCandidate());
if (IncrementButton("Release Candidate", versionDefinition.IncreaseReleaseCandidate()))
CommitVersion(versionDefinition.IncreaseReleaseCandidate());
// EditorGUILayout.EndHorizontal();
EditorGUILayout.EndHorizontal();
}
private void CommitVersion(VersionDefinition versionDefinition)