18 lines
432 B
Bash
18 lines
432 B
Bash
#!/usr/bin/env bash
|
|
# Builds Snaggle and drops the .app in build/Release.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
xcodebuild \
|
|
-project Snaggle.xcodeproj \
|
|
-scheme Snaggle \
|
|
-configuration "${1:-Release}" \
|
|
-destination 'platform=macOS,arch=arm64' \
|
|
-derivedDataPath build/DerivedData \
|
|
build
|
|
|
|
APP="build/DerivedData/Build/Products/${1:-Release}/Snaggle.app"
|
|
echo
|
|
echo "Built: $APP"
|
|
echo "Run it with: open \"$APP\""
|