This repository was archived by the owner on Sep 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
using static Xamarin . Provisioning . ProvisioningScript ;
4
4
5
- Item ( "https://xamjenkinsartifact.azureedge.net/build-package-osx-mono/2018-08/248/fdb26b0a4454f60d20df1ea6c01fd851ffa4084a/MonoFramework-MDK-5.18.1.3.macos10.xamarin.universal.pkg" ) ;
6
- Item ( "https://bosstoragemirror.blob.core.windows.net/wrench/jenkins/d16-0/50f7527307faf601c7b7754ac77a839fd5d0c820/26/package/xamarin.mac-5.6.0.25.pkg" ) ;
7
- Item ( XreItem . Xcode_10_0_0 ) . XcodeSelect ( ) ;
5
+ using System . Linq ;
6
+
7
+ static readonly bool CI = ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "TF_BUILD" ) ) ;
8
+
9
+ if ( IsMac ) {
10
+ const string MacOSVersion = "10.12" ;
11
+ const string Mojave = "10.14" ;
12
+ if ( OSVersion < new Version ( MacOSVersion ) )
13
+ throw new Exception ( $ "macOS { MacOSVersion } or newer is required") ;
14
+
15
+ if ( CI ) {
16
+ foreach ( var dir in System . IO . Directory . GetDirectories ( "/Applications" , "Xcode*" ) )
17
+ Console . WriteLine ( "\t Found: {0}" , dir ) ;
18
+ }
19
+
20
+ if ( OSVersion < new Version ( Mojave ) ) {
21
+ Item ( XreItem . Xcode_10_1_0 ) . XcodeSelect ( ) ;
22
+ }
23
+ else {
24
+ Item ( XreItem . Xcode_11_0_0_rc ) . XcodeSelect ( ) ;
25
+
26
+ Console . WriteLine ( $ "{ Environment . NewLine } 🚦Disabling 32bit warning for Mojave.{ Environment . NewLine } ") ;
27
+ }
28
+
29
+ Item ( "https://xamjenkinsartifact.azureedge.net/build-package-osx-mono/2019-06/175/4f5ed502c6e04c61cbbf6ba3b64db8187c4b6156/MonoFramework-MDK-6.4.0.192.macos10.xamarin.universal.pkg" ) ;
30
+ Item ( "https://bosstoragemirror.blob.core.windows.net/wrench/jenkins/xcode11/e7986d2645323b76c90de095c590bb84a1e26bdb/306/package/xamarin.mac-6.0.0.8.pkg" ) ;
31
+
32
+ var dotnetVersion = "2.2.203" ;
33
+ DotNetCoreSdk ( dotnetVersion ) ;
34
+ }
You can’t perform that action at this time.
0 commit comments