24 строки
689 B
Bash
Executable File
24 строки
689 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euvx
|
|
|
|
FRAMEWORK_NAME="${1:-MozillaAppServices.framework.zip}"
|
|
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 && \
|
|
carthage build --no-skip-current --platform iOS --verbose --configuration "${CONFIGURATION}" | \
|
|
tee raw_xcodebuild.log | \
|
|
xcpretty
|
|
|
|
# Exclude SwiftProtobuf.
|
|
rm -rf Carthage/Build/iOS/SwiftProtobuf.framework*
|
|
zip -r "${FRAMEWORK_NAME}" Carthage/Build/iOS
|