@@ -61,6 +61,9 @@ static int Main (string[] args)
61
61
case "is-preview" :
62
62
GetIsPreview ( args ) ;
63
63
break ;
64
+ case "is-major-preview" :
65
+ GetIsMajorPreview ( args ) ;
66
+ break ;
64
67
default :
65
68
Console . WriteLine ( "Unknown command: " + cmd ) ;
66
69
return 1 ;
@@ -87,6 +90,10 @@ static void GetIsPreview (string[] args)
87
90
Console . WriteLine ( config . IsPreview ) ;
88
91
}
89
92
93
+ static void GetIsMajorPreview ( string [ ] args )
94
+ {
95
+ Console . WriteLine ( config . IsMajorPreview ) ;
96
+ }
90
97
static void GetReleaseId ( string [ ] args )
91
98
{
92
99
Console . WriteLine ( config . ReleaseId ) ;
@@ -137,7 +144,8 @@ public class IdeConfigurationTool
137
144
public readonly string ReleaseId ;
138
145
public readonly PlatformInfo PlatformInfo ;
139
146
public readonly bool IsPreview ;
140
-
147
+ public readonly bool IsMajorPreview ;
148
+
141
149
public IdeConfigurationTool ( string monoDevelopPath )
142
150
{
143
151
MonoDevelopPath = monoDevelopPath ;
@@ -148,6 +156,7 @@ public IdeConfigurationTool(string monoDevelopPath)
148
156
CompatVersion = SystemUtil . Grep ( versionTxt , "CompatVersion=(.*)" ) ;
149
157
SourceUrl = SystemUtil . Grep ( versionTxt , "SourceUrl=(.*)" , true ) ;
150
158
IsPreview = SystemUtil . Grep ( versionTxt , "IsPreview=(.*)" ) == "true" ;
159
+ IsMajorPreview = SystemUtil . Grep ( versionTxt , "IsMajorPreview=(.*)" ) == "true" ;
151
160
152
161
var customSource = Environment . GetEnvironmentVariable ( "MONODEVELOP_UPDATEINFO_SOURCE_URL" ) ;
153
162
if ( ! string . IsNullOrEmpty ( customSource ) )
0 commit comments