Skip to content
Snippets Groups Projects
Commit b9c7a3b8 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

build and deploy: add support for macOS

parent d714103c
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ set -e
CLEAN=yes
DEPLOY_MOBILEVLCKIT=no
DEPLOY_TVVLCKIT=no
DEPLOY_MACOSVLCKIT=no
TEST_MODE=no
BUILD_MOBILEVLCKIT="./buildMobileVLCKit.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
;;
......@@ -264,6 +270,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
}
......@@ -298,6 +306,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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment