scripts/release-ios.sh
18 lines · 860 bytes · executable
1 symbol in this file
1#!/bin/sh
2# Archives the iOS app (with its extensions and the watch app) and uploads it to App Store
3# Connect for TestFlight. The version is the project's MARKETING_VERSION; the build number is the
4# commit count, as the Mac releases' are. Run after scripts/release-mac.sh and before
5# scripts/release-macos.sh, from the same commit. The work is done by
6# appstore-kit, checked out beside this repository or at $APPSTORE_KIT.
7# Usage: scripts/release-ios.sh
8# ORGSTAR_PUBLISH 0 archives and exports the .ipa to .build/ios-release without uploading
9PUBLISH="${ORGSTAR_PUBLISH:-1}"
10name=orgstar
11project=ios/Orgstar.xcodeproj
12scheme="Orgstar iOS"
13
14# Runs before the archive.
15preflight() {
16 ORGSTAR_GATES=1 swift test -c release --filter GateTests || fail "a performance gate failed"
17}
18. "${APPSTORE_KIT:-$(dirname "$0")/../../appstore-kit}/release-ios.sh"