Skip to content

Commit 22dbcf8

Browse files
committed
Add build.sh script for command line builds
1 parent 1b200ae commit 22dbcf8

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Xcode
1+
# Build output
22
.build/
33
build/
4+
dist/
45
DerivedData/
56
*.xcodeproj/xcuserdata/
67
*.xcworkspace/xcuserdata/

build.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Building AudioPriorityBar..."
5+
6+
xcodebuild -scheme AudioPriorityBar \
7+
-configuration Release \
8+
-derivedDataPath .build \
9+
-arch arm64 -arch x86_64 \
10+
ONLY_ACTIVE_ARCH=NO \
11+
CODE_SIGN_IDENTITY="-" \
12+
CODE_SIGNING_REQUIRED=NO \
13+
CODE_SIGNING_ALLOWED=NO \
14+
build
15+
16+
mkdir -p dist
17+
rm -rf dist/AudioPriorityBar.app
18+
cp -R .build/Build/Products/Release/AudioPriorityBar.app dist/
19+
20+
echo ""
21+
echo "Build complete: dist/AudioPriorityBar.app"

0 commit comments

Comments
 (0)