oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

1#!/bin/sh
2# The iPhone app. "simulator" builds unsigned for the iOS Simulator;
3# "device" signs for a phone with OFICINA_DEVELOPMENT_TEAM set.
4set -eu
5cd "$(dirname "$0")/.."
6scripts/fonts-into-bundle.sh
7cd ios
8xcodegen generate --quiet
9case "${1:-simulator}" in
10 simulator)
11 xcodebuild -project BasePhone.xcodeproj -scheme BasePhone -configuration Debug -sdk iphonesimulator \
12 -destination 'generic/platform=iOS Simulator' -derivedDataPath ../build/Phone CODE_SIGNING_ALLOWED=NO build ;;
13 device)
14 : "${OFICINA_DEVELOPMENT_TEAM:?set OFICINA_DEVELOPMENT_TEAM to sign for a device}"
15 xcodebuild -project BasePhone.xcodeproj -scheme BasePhone -configuration Debug -sdk iphoneos \
16 -destination 'generic/platform=iOS' -derivedDataPath ../build/Phone DEVELOPMENT_TEAM="$OFICINA_DEVELOPMENT_TEAM" -allowProvisioningUpdates build ;;
17 *) echo "usage: build-iphone.sh [simulator|device]" >&2; exit 2 ;;
18esac
19