scripts/install.sh: bauen, nach /Applications kopieren, neu starten
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
a4f5c798e7
commit
ec1356911e
1 file changed
+19
Executable
+19
@@ -0,0 +1,19 @@
|
|||||||
|
#!/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
|
||||||
Reference in new issue
Block a user