Commit 02bd3868 authored by Felix Paul Kühne's avatar Felix Paul Kühne

build and deploy: add support for macOS

(cherry picked from commit b9c7a3b8)
parent dbd8424f
......@@ -5,6 +5,7 @@ set -e
CLEAN=yes
DEPLOY_MOBILEVLCKIT=no
DEPLOY_TVVLCKIT=no
DEPLOY_MACOSVLCKIT=no
TEST_MODE=no
BUILD_MOBILEVLCKIT="./compileAndBuildVLCKit.sh -vf"
......@@ -12,6 +13,7 @@ CREATE_DISTRIBUTION_PACKAGE="./create-distributable-package.sh"
STABLE_UPLOAD_URL="https://download.videolan.org/cocoapods/unstable/"
MOBILE_PODSPEC="MobileVLCKit-unstable.podspec"
TV_PODSPEC="TVVLCKit-unstable.podspec"
MACOS_PODSPEC="VLCKit.podspec"
# Note: create-distributable-package script is building VLCKit(s) if not found.
# Note: by default, VLCKit will be build if no option is passed.
......@@ -25,11 +27,12 @@ OPTIONS
-d Disable cleaning of build directory
-m Deploy MobileVLCKit
-t Deploy TVVLCKit
-x Deploy VLCKit for macOS
-l Start test for build phases
EOF
}
while getopts "hdmtl" OPTION
while getopts "hdmtlx" OPTION
do
case $OPTION in
h)
......@@ -45,6 +48,9 @@ do
t)
DEPLOY_TVVLCKIT=yes
;;
x)
DEPLOY_MACOSVLCKIT=yes
;;
l)
TEST_MODE=yes
;;
......@@ -265,6 +271,8 @@ setCurrentPodspec()
CURRENT_PODSPEC=$MOBILE_PODSPEC
elif [ "$DEPLOY_TVVLCKIT" = "yes" ]; then
CURRENT_PODSPEC=$TV_PODSPEC
elif [ "DEPLOY_MACOSVLCKIT" = "yes" ]; then
CURRENT_PODSPEC=$MACOS_PODSPEC
fi
}
......@@ -299,6 +307,8 @@ if [ "$DEPLOY_MOBILEVLCKIT" = "yes" ]; then
options="-m"
elif [ "$DEPLOY_TVVLCKIT" = "yes" ]; then
options="-t"
elif [ "$DEPLOY_MACOSVLCKIT" = "yes" ]; then
options="-x"
fi
UPLOAD_URL=${STABLE_UPLOAD_URL}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment