Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit d964011

Browse files
committed
Add IsMajorPreview flag to configure script
1 parent 5355ebd commit d964011

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

scripts/configure.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ static int Main (string[] args)
6161
case "is-preview":
6262
GetIsPreview(args);
6363
break;
64+
case "is-major-preview":
65+
GetIsMajorPreview(args);
66+
break;
6467
default:
6568
Console.WriteLine("Unknown command: " + cmd);
6669
return 1;
@@ -87,6 +90,10 @@ static void GetIsPreview (string[] args)
8790
Console.WriteLine (config.IsPreview);
8891
}
8992

93+
static void GetIsMajorPreview (string[] args)
94+
{
95+
Console.WriteLine (config.IsMajorPreview);
96+
}
9097
static void GetReleaseId (string[] args)
9198
{
9299
Console.WriteLine (config.ReleaseId);
@@ -137,7 +144,8 @@ public class IdeConfigurationTool
137144
public readonly string ReleaseId;
138145
public readonly PlatformInfo PlatformInfo;
139146
public readonly bool IsPreview;
140-
147+
public readonly bool IsMajorPreview;
148+
141149
public IdeConfigurationTool(string monoDevelopPath)
142150
{
143151
MonoDevelopPath = monoDevelopPath;
@@ -148,6 +156,7 @@ public IdeConfigurationTool(string monoDevelopPath)
148156
CompatVersion = SystemUtil.Grep(versionTxt, "CompatVersion=(.*)");
149157
SourceUrl = SystemUtil.Grep(versionTxt, "SourceUrl=(.*)", true);
150158
IsPreview = SystemUtil.Grep(versionTxt, "IsPreview=(.*)") == "true";
159+
IsMajorPreview = SystemUtil.Grep(versionTxt, "IsMajorPreview=(.*)") == "true";
151160

152161
var customSource = Environment.GetEnvironmentVariable ("MONODEVELOP_UPDATEINFO_SOURCE_URL");
153162
if (!string.IsNullOrEmpty (customSource))

version.config

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Version=8.0
22
Label=8.0 Preview
33
CompatVersion=8.0
44
IsPreview=true
5+
IsMajorPreview=true

0 commit comments

Comments
 (0)