2019-02-14 00:51:03 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-03-21 00:08:17 +03:00
|
|
|
set -euvx
|
|
|
|
|
2019-03-07 22:14:52 +03:00
|
|
|
FRAMEWORK_NAME="${1:-MozillaAppServices.framework.zip}"
|
2019-04-18 20:38:08 +03:00
|
|
|
|
|
|
|
# Help out iOS folks who might want to run this but haven't
|
|
|
|
# updated rust recently.
|
|
|
|
rustup update stable
|
|
|
|
|
2019-03-30 00:06:05 +03:00
|
|
|
carthage update --platform iOS --cache-builds swift-protobuf
|
2019-02-14 00:51:03 +03:00
|
|
|
## When https://github.com/Carthage/Carthage/issues/2623 is fixed,
|
|
|
|
## carthage build --archive should work to produce a zip
|
2019-03-21 00:08:17 +03:00
|
|
|
|
|
|
|
carthage build --no-skip-current --platform iOS --verbose
|
|
|
|
|
|
|
|
# Exclude SwiftProtobuf.
|
2019-04-05 22:36:52 +03:00
|
|
|
rm -rf Carthage/Build/iOS/SwiftProtobuf.framework*
|
2019-04-11 18:04:58 +03:00
|
|
|
zip -r ${FRAMEWORK_NAME} Carthage/Build/iOS
|