Pārlūkot izejas kodu

package script: fix compilation for tvOS and macOS

(cherry picked from commit 0a4c67820a5987c104e628aeffa9c1df71f6df26)
Felix Paul Kühne 7 gadi atpakaļ
vecāks
revīzija
0f04c64430
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      Packaging/buildAndDeployFrameworks.sh

+ 5 - 3
Packaging/buildAndDeployFrameworks.sh

@@ -118,8 +118,8 @@ clean()
 
 buildMobileVLCKit()
 {
-    log "Info" "Staring MobileVLCKit build..."
-    if ! $BUILD_MOBILEVLCKIT; then
+    log "Info" "Starting MobileVLCKit build..."
+    if ! $BUILD_MOBILEVLCKIT "$1"; then
         log "Error" "MobileVLCKit build failed"
         rm -fr "build/"
         exit 1
@@ -142,6 +142,8 @@ renamePackage()
         TARGET="MobileVLCKit"
     elif [ "$1" = "-t" ]; then
         TARGET="TVVLCKit"
+    elif [ "$1" = "-x" ]; then
+        TARGET="VLCKit"
     fi
     getVLCHashes
 
@@ -314,7 +316,7 @@ fi
 UPLOAD_URL=${STABLE_UPLOAD_URL}
 
 spushd "$ROOT_DIR"
-    buildMobileVLCKit
+    buildMobileVLCKit $options
     setCurrentPodspec
     packageBuild $options
     renamePackage $options