- Icon aus Geometrie gezeichnet (keine Schriften nötig), Form wie Apples macOS-Vorlage mit kontinuierlichen Ecken, feine Innenkante, entrauschter Verlauf - Optische Größen: 32/64/128 px mit kräftigeren Strichen, damit das Monogramm im Dock lesbar bleibt - Varianten monogramm (Standard), hell, kasten, serif; --preview zeigt alle nebeneinander - install.sh aktualisiert Finder/Dock-Icon-Cache, wenn sich das Icon geändert hat Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
30 lines
1.2 KiB
Bash
Executable File
30 lines
1.2 KiB
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
|
|
|
|
ICON_CHANGED=0
|
|
cmp -s build/Lichtkasten.app/Contents/Resources/AppIcon.icns \
|
|
/Applications/Lichtkasten.app/Contents/Resources/AppIcon.icns 2>/dev/null || ICON_CHANGED=1
|
|
|
|
rm -rf /Applications/Lichtkasten.app
|
|
cp -R build/Lichtkasten.app /Applications/
|
|
echo "✅ Installiert: /Applications/Lichtkasten.app"
|
|
|
|
# neues Icon gleich in Finder und Dock zeigen (macOS hält Icons sonst im Cache)
|
|
touch /Applications/Lichtkasten.app
|
|
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister \
|
|
-f /Applications/Lichtkasten.app >/dev/null 2>&1 || true
|
|
if [ "$ICON_CHANGED" = 1 ]; then killall Dock 2>/dev/null || true; fi
|
|
open /Applications/Lichtkasten.app
|