Build script: install to ~/Applications, DerivedData outside iCloud Documents
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,11 @@ BroV is a personal, never-published fork of Coucou (github.com/Louis-CFM/coucou,
|
|||||||
|
|
||||||
## Build
|
## Build
|
||||||
```
|
```
|
||||||
cd NotchBuddy && xcodegen && xcodebuild -scheme BroV -configuration Debug -derivedDataPath build build
|
bash scripts/build.sh # xcodegen + xcodebuild, installs ~/Applications/BroV.app, relaunches
|
||||||
open build/Build/Products/Debug/BroV.app
|
bash scripts/render-brov.sh # character in every state → /tmp/brov-states.png
|
||||||
|
```
|
||||||
|
DerivedData must stay outside ~/Documents (iCloud adds Finder attributes and codesign fails).
|
||||||
|
```
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rules
|
## Rules
|
||||||
|
|||||||
Executable
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Build BroV and install it to ~/Applications/BroV.app, then (re)launch it.
|
||||||
|
# DerivedData lives outside ~/Documents: iCloud adds Finder attributes there and codesign refuses them.
|
||||||
|
set -e
|
||||||
|
cd "$(dirname "$0")/../NotchBuddy"
|
||||||
|
D="$HOME/Library/Developer/Xcode/DerivedData/BroV"
|
||||||
|
xcodegen -q
|
||||||
|
xcodebuild -scheme BroV -configuration "${1:-Debug}" -derivedDataPath "$D" build | grep -E 'error:|BUILD (SUCCEEDED|FAILED)' || true
|
||||||
|
APP="$D/Build/Products/${1:-Debug}/BroV.app"
|
||||||
|
[ -d "$APP" ] || { echo "build failed"; exit 1; }
|
||||||
|
pkill -x BroV 2>/dev/null || true
|
||||||
|
mkdir -p "$HOME/Applications"
|
||||||
|
rm -rf "$HOME/Applications/BroV.app"
|
||||||
|
cp -R "$APP" "$HOME/Applications/BroV.app"
|
||||||
|
open "$HOME/Applications/BroV.app"
|
||||||
|
echo "BroV installed to ~/Applications/BroV.app and launched"
|
||||||
Reference in New Issue
Block a user