Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
20 lines
712 B
Bash
Executable File
20 lines
712 B
Bash
Executable File
#!/bin/bash
|
|
# Baut Lichtkasten, beendet die laufende App, ersetzt /Applications/Lichtkasten.app und startet sie neu.
|
|
# Dock-Symbol, Einstellungen, Vorlagen und Codes bleiben erhalten.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
git pull --ff-only || echo "⚠️ git pull übersprungen"
|
|
./scripts/build-app.sh
|
|
|
|
if pgrep -x Lichtkasten >/dev/null; then
|
|
echo "Beende laufendes Lichtkasten …"
|
|
osascript -e 'tell application "Lichtkasten" to quit' || true
|
|
for _ in {1..20}; do pgrep -x Lichtkasten >/dev/null || break; sleep 0.5; done
|
|
fi
|
|
|
|
rm -rf /Applications/Lichtkasten.app
|
|
cp -R build/Lichtkasten.app /Applications/
|
|
echo "✅ Installiert: /Applications/Lichtkasten.app"
|
|
open /Applications/Lichtkasten.app
|