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