Files
lichtkasten/scripts/build-app.sh
T

23 lines
808 B
Bash
Executable File

#!/bin/bash
# Baut Lichtkasten.app (Apple Silicon) nach build/Lichtkasten.app
set -euo pipefail
cd "$(dirname "$0")/.."
CONFIG="${1:-release}"
swift build -c "$CONFIG" --arch arm64
BIN="$(swift build -c "$CONFIG" --arch arm64 --show-bin-path)/Lichtkasten"
APP="build/Lichtkasten.app"
rm -rf "$APP"
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
cp "$BIN" "$APP/Contents/MacOS/Lichtkasten"
cp Resources/Info.plist "$APP/Contents/Info.plist"
cp -R LightroomPlugin/LichtkastenBridge.lrplugin "$APP/Contents/Resources/"
[ -f Resources/AppIcon.icns ] && cp Resources/AppIcon.icns "$APP/Contents/Resources/"
# Ad-hoc-Signatur (reicht für den eigenen Mac)
codesign --force --deep --sign - "$APP"
echo "✅ Fertig: $APP"
echo " Starten: open $APP"
echo " Installieren: cp -R $APP /Applications/"