forked from creepymonster/GlucoseDirect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·33 lines (27 loc) · 1.02 KB
/
deploy.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
# Archive and upload DOSBTS to TestFlight via App Store Connect API
# Usage: ./deploy.sh
ARCHIVE_PATH="build/DOSBTS.xcarchive"
EXPORT_PATH="build/export"
echo "==> Cleaning build directory..."
rm -rf build/
echo "==> Archiving..."
xcodebuild -project DOSBTS.xcodeproj -scheme DOSBTSApp \
-destination 'generic/platform=iOS' -configuration Release \
archive -archivePath "$ARCHIVE_PATH" \
-allowProvisioningUpdates \
-authenticationKeyPath ~/.private_keys/AuthKey_2CY3778TFY.p8 \
-authenticationKeyID 2CY3778TFY \
-authenticationKeyIssuerID 69a6de7d-b4e1-47e3-e053-5b8c7c11a4d1 \
-quiet
echo "==> Uploading to TestFlight..."
xcodebuild -exportArchive \
-archivePath "$ARCHIVE_PATH" \
-exportOptionsPlist ExportOptions.plist \
-exportPath "$EXPORT_PATH" \
-allowProvisioningUpdates \
-authenticationKeyPath ~/.private_keys/AuthKey_2CY3778TFY.p8 \
-authenticationKeyID 2CY3778TFY \
-authenticationKeyIssuerID 69a6de7d-b4e1-47e3-e053-5b8c7c11a4d1
echo "==> Done! Build uploaded to TestFlight."