blob: 5870c7f9a6cf008a9f618d2e936e5c1e8bffa8e8 [file] [log] [blame]
#!/usr/bin/env bash
set -exo pipefail
if [ -z "$3" ]; then
echo -e "Usage: ios-deploy.sh \$SRC_DIR \$INSTALL_DIR \$OUTPUT_DIR " 1>&2
exit 1
fi
set -u
SRC_DIR="$1"
OUTPUT_DIR="$3"
REMOTE_URL="https://flutter.googlesource.com/third_party/ios-deploy"
git clone "$REMOTE_URL" "$SRC_DIR"
cd "$SRC_DIR"
git rev-parse HEAD > "commit_sha.txt"
xcodebuild -configuration Release SYMROOT=build -arch x86_64
cp LICENSE LICENSE2 ./build/Release/ios-deploy "$OUTPUT_DIR"