1- #addin nuget : ? package= Cake . XCode & version = 4.1 .0
1+ #addin nuget : ? package= Cake . XCode & version = 4.2 .0
22#addin nuget: ? package = Cake . Yaml & version = 3.1 .0 & loadDependencies = true
33#addin nuget: ? package = Cake . Json & version = 4.0 .0 & loadDependencies = true
44#addin nuget: ? package = Xamarin . Nuget . Validator & version = 1.1 .1
@@ -122,7 +122,7 @@ if (FORCE_BUILD) {
122122 foreach ( var buildGroup in BUILD_GROUPS ) {
123123 // If ignore triggers for the platform this is running on, do not add the group even if the trigger is matched
124124 if ( ( buildGroup . IgnoreTriggersOnLinux && IsRunningOnLinux ( ) ) ||
125- ( buildGroup . IgnoreTriggersOnMac && IsRunningOnMac ( ) ) ||
125+ ( buildGroup . IgnoreTriggersOnMac && IsRunningOnMacOs ( ) ) ||
126126 ( buildGroup . IgnoreTriggersOnWindows && IsRunningOnWindows ( ) ) )
127127 continue;
128128
@@ -202,7 +202,7 @@ if (BUILD_NAMES.Length > 0) {
202202
203203// Remove the builds that cannot run on this platform
204204groupsToBuild = groupsToBuild
205- . Where ( bg => ( bg . BuildOnWindows && IsRunningOnWindows ( ) ) || ( bg . BuildOnMac && IsRunningOnMac ( ) ) || ( bg . BuildOnLinux && IsRunningOnLinux ( ) ) )
205+ . Where ( bg => ( bg . BuildOnWindows && IsRunningOnWindows ( ) ) || ( bg . BuildOnMac && IsRunningOnMacOs ( ) ) || ( bg . BuildOnLinux && IsRunningOnLinux ( ) ) )
206206 . ToList ( ) ;
207207if ( groupsToBuild . Count > 0 ) {
208208 Information ( "Removed the items that cannot build on this platform, leaving:" + Environment . NewLine +
@@ -223,7 +223,7 @@ if (groupsToBuild.Count == 0) {
223223 // Make a note if nothing changed...
224224 Warning ( "No changed files affected any of the paths from the manifest.yaml." ) ;
225225} else {
226- if ( IsRunningOnMac ( ) ) {
226+ if ( IsRunningOnMacOs ( ) ) {
227227 // Make sure cocoapods are up to date if needed
228228 if ( podRepoUpdate != PodRepoUpdate . NotRequired ) {
229229 if ( podRepoUpdate == PodRepoUpdate . Forced )
@@ -268,7 +268,7 @@ if (groupsToBuild.Count == 0) {
268268 targets = BUILD_TARGETS . ToList ( ) ;
269269 else if ( IsRunningOnWindows ( ) )
270270 targets = buildGroup. WindowsBuildTargets . ToList ( ) ;
271- else if ( IsRunningOnMac ( ) )
271+ else if ( IsRunningOnMacOs ( ) )
272272 targets = buildGroup. MacBuildTargets . ToList ( ) ;
273273 else if ( IsRunningOnLinux ( ) )
274274 targets = buildGroup. LinuxBuildTargets . ToList ( ) ;
@@ -418,12 +418,12 @@ public class BuildGroup {
418418 public override string ToString ( ) => Name ;
419419}
420420
421- bool IsRunningOnMac ( ) {
421+ bool IsRunningOnMacOs ( ) {
422422 return System. Environment . OSVersion . Platform == PlatformID . MacOSX || MacPlatformDetector . IsMac . Value ;
423423}
424424
425425bool IsRunningOnLinux ( ) {
426- return IsRunningOnUnix ( ) && ! IsRunningOnMac ( ) ;
426+ return IsRunningOnUnix ( ) && ! IsRunningOnMacOs ( ) ;
427427}
428428
429429internal static class MacPlatformDetector {
0 commit comments