1
- #addin nuget : ? package= Cake . XCode & version = 4.1 .0
1
+ #addin nuget : ? package= Cake . XCode & version = 4.2 .0
2
2
#addin nuget: ? package = Cake . Yaml & version = 3.1 .0 & loadDependencies = true
3
3
#addin nuget: ? package = Cake . Json & version = 4.0 .0 & loadDependencies = true
4
4
#addin nuget: ? package = Xamarin . Nuget . Validator & version = 1.1 .1
@@ -122,7 +122,7 @@ if (FORCE_BUILD) {
122
122
foreach ( var buildGroup in BUILD_GROUPS ) {
123
123
// If ignore triggers for the platform this is running on, do not add the group even if the trigger is matched
124
124
if ( ( buildGroup . IgnoreTriggersOnLinux && IsRunningOnLinux ( ) ) ||
125
- ( buildGroup . IgnoreTriggersOnMac && IsRunningOnMac ( ) ) ||
125
+ ( buildGroup . IgnoreTriggersOnMac && IsRunningOnMacOs ( ) ) ||
126
126
( buildGroup . IgnoreTriggersOnWindows && IsRunningOnWindows ( ) ) )
127
127
continue;
128
128
@@ -202,7 +202,7 @@ if (BUILD_NAMES.Length > 0) {
202
202
203
203
// Remove the builds that cannot run on this platform
204
204
groupsToBuild = 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 ( ) ) )
206
206
. ToList ( ) ;
207
207
if ( groupsToBuild . Count > 0 ) {
208
208
Information ( "Removed the items that cannot build on this platform, leaving:" + Environment . NewLine +
@@ -223,7 +223,7 @@ if (groupsToBuild.Count == 0) {
223
223
// Make a note if nothing changed...
224
224
Warning ( "No changed files affected any of the paths from the manifest.yaml." ) ;
225
225
} else {
226
- if ( IsRunningOnMac ( ) ) {
226
+ if ( IsRunningOnMacOs ( ) ) {
227
227
// Make sure cocoapods are up to date if needed
228
228
if ( podRepoUpdate != PodRepoUpdate . NotRequired ) {
229
229
if ( podRepoUpdate == PodRepoUpdate . Forced )
@@ -268,7 +268,7 @@ if (groupsToBuild.Count == 0) {
268
268
targets = BUILD_TARGETS . ToList ( ) ;
269
269
else if ( IsRunningOnWindows ( ) )
270
270
targets = buildGroup. WindowsBuildTargets . ToList ( ) ;
271
- else if ( IsRunningOnMac ( ) )
271
+ else if ( IsRunningOnMacOs ( ) )
272
272
targets = buildGroup. MacBuildTargets . ToList ( ) ;
273
273
else if ( IsRunningOnLinux ( ) )
274
274
targets = buildGroup. LinuxBuildTargets . ToList ( ) ;
@@ -418,12 +418,12 @@ public class BuildGroup {
418
418
public override string ToString ( ) => Name ;
419
419
}
420
420
421
- bool IsRunningOnMac ( ) {
421
+ bool IsRunningOnMacOs ( ) {
422
422
return System. Environment . OSVersion . Platform == PlatformID . MacOSX || MacPlatformDetector . IsMac . Value ;
423
423
}
424
424
425
425
bool IsRunningOnLinux ( ) {
426
- return IsRunningOnUnix ( ) && ! IsRunningOnMac ( ) ;
426
+ return IsRunningOnUnix ( ) && ! IsRunningOnMacOs ( ) ;
427
427
}
428
428
429
429
internal static class MacPlatformDetector {
0 commit comments