application-services/build-carthage.sh

24 строки
689 B
Bash
Исходник Обычный вид История

#!/usr/bin/env bash
set -euvx
FRAMEWORK_NAME="${1:-MozillaAppServices.framework.zip}"
2019-04-25 20:57:02 +03:00
CONFIGURATION="${2:-Release}"
# Help out iOS folks who might want to run this but haven't
# updated rust recently.
rustup update stable
carthage update --platform iOS --cache-builds swift-protobuf
## When https://github.com/Carthage/Carthage/issues/2623 is fixed,
## carthage build --archive should work to produce a zip
set -o pipefail && \
2019-04-25 20:57:02 +03:00
carthage build --no-skip-current --platform iOS --verbose --configuration "${CONFIGURATION}" | \
tee raw_xcodebuild.log | \
xcpretty
# Exclude SwiftProtobuf.
2019-04-05 22:36:52 +03:00
rm -rf Carthage/Build/iOS/SwiftProtobuf.framework*
2019-05-30 01:52:59 +03:00
zip -r "${FRAMEWORK_NAME}" Carthage/Build/iOS