Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
61
iphone/upload_to_appstore.sh
Executable file
61
iphone/upload_to_appstore.sh
Executable file
|
|
@ -0,0 +1,61 @@
|
|||
#!/usr/bin/env bash
|
||||
# Archives and uploads the release into the AppStore.
|
||||
# Assumes that all certificates and CarPlay provisioning profiles are properly set up in XCode.
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$(dirname "$0")" && pwd -P )"
|
||||
|
||||
IOS_BUILD=$($SCRIPT_DIR/../tools/unix/version.sh ios_build)
|
||||
IOS_VERSION=$($SCRIPT_DIR/../tools/unix/version.sh ios_version)
|
||||
|
||||
BUILD_DIR="$SCRIPT_DIR/build"
|
||||
mkdir -p "$BUILD_DIR"
|
||||
ARCHIVE_PATH="$BUILD_DIR/OM-$IOS_VERSION-$IOS_BUILD.xcarchive"
|
||||
IPA_PATH="$BUILD_DIR"
|
||||
rm -rf "$ARCHIVE_PATH"
|
||||
|
||||
|
||||
# Build release archive.
|
||||
xcodebuild archive \
|
||||
-workspace "$SCRIPT_DIR/../xcode/CoMaps.xcworkspace" \
|
||||
-configuration Release \
|
||||
-scheme CoMaps \
|
||||
-destination generic/platform=iOS \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
MARKETING_VERSION="$IOS_VERSION" \
|
||||
CURRENT_PROJECT_VERSION="$IOS_BUILD"
|
||||
|
||||
|
||||
# Create a plist with upload options.
|
||||
PLIST="$BUILD_DIR/export.plist"
|
||||
cat > "$PLIST" <<EOM
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>destination</key>
|
||||
<string>upload</string>
|
||||
<key>method</key>
|
||||
<string>app-store</string>
|
||||
<key>teamID</key>
|
||||
<string>534D2KJBUK</string>
|
||||
<key>provisioningProfiles</key>
|
||||
<dict>
|
||||
<key>app.comaps</key>
|
||||
<string>CarPlay AppStore</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
EOM
|
||||
|
||||
# Upload build to the AppStore.
|
||||
xcodebuild -exportArchive \
|
||||
-archivePath "$ARCHIVE_PATH" \
|
||||
-exportOptionsPlist "$PLIST"
|
||||
|
||||
|
||||
echo "Build was successfully uploaded! Please don't forget to tag it with release notes using:"
|
||||
TAG="$IOS_VERSION-$IOS_BUILD-ios"
|
||||
echo "git tag -a $TAG"
|
||||
echo "git push origin $TAG"
|
||||
Loading…
Add table
Add a link
Reference in a new issue