22 lines
475 B
Bash
Executable File
22 lines
475 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd /Volumes/Developer/Applications/DbSyn
|
|
|
|
# Remove previous build
|
|
rm -rf ./build
|
|
|
|
# Clean and build DBSyn
|
|
xcodebuild \
|
|
-project DBSyn.xcodeproj \
|
|
-scheme DBSyn \
|
|
-configuration Debug \
|
|
-destination 'platform=macOS,arch=arm64' \
|
|
-derivedDataPath ./build \
|
|
clean build
|
|
|
|
# Stop any running instance
|
|
pkill -x DBSyn 2>/dev/null || true
|
|
|
|
# Launch the newly built application
|
|
open ./build/Build/Products/Debug/DBSyn.app |