Add build-test osx support
authorjashook <jashoo@microsoft.com>
Thu, 19 Oct 2017 22:50:21 +0000 (15:50 -0700)
committerjashook <jashoo@microsoft.com>
Thu, 19 Oct 2017 22:51:06 +0000 (15:51 -0700)
build-test.sh
build.sh

index 2b83380..48d9a1f 100755 (executable)
@@ -29,6 +29,10 @@ initTargetDistroRid()
         export __DistroRid="$__HostDistroRid"
     fi
 
+    if [ "$__BuildOS" == "OSX" ]; then
+        __PortableBuild=1
+    fi
+
     # Portable builds target the base RID
     if [ "$__PortableBuild" == 1 ]; then
         if [ "$__BuildOS" == "Linux" ]; then
@@ -41,6 +45,8 @@ initTargetDistroRid()
    if [ "$ID.$VERSION_ID" == "ubuntu.16.04" ]; then
      export __DistroRid="ubuntu.14.04-$__BuildArch"
    fi
+
+   echo "__DistroRid: " $__DistroRid
 }
 
 isMSBuildOnNETCoreSupported()
index 922063c..a098d5e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -105,6 +105,10 @@ initTargetDistroRid()
         export __DistroRid="$__HostDistroRid"
     fi
 
+    if [ "$__BuildOS" == "OSX" ]; then
+        __PortableBuild=1
+    fi
+
     # Portable builds target the base RID
     if [ $__PortableBuild == 1 ]; then
         if [ "$__BuildOS" == "Linux" ]; then