Document setup and rendering, add app build and settings tests

This commit is contained in:
Mikei386
2026-09-13 08:56:27 +02:00
parent 0b85f7d73a
commit c530fe025a
7 changed files with 192 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/.."
swift build -c release
bin_dir="$(swift build -c release --show-bin-path)"
app="build/GrowthLapse.app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
cp "$bin_dir/GrowthLapse" "$app/Contents/MacOS/GrowthLapse"
cp dist/GrowthLapse.app/Contents/Info.plist "$app/Contents/Info.plist"
cp dist/GrowthLapse.app/Contents/Resources/GrowthLapse.icns "$app/Contents/Resources/GrowthLapse.icns"
codesign --force --deep --sign - "$app"
printf 'App erstellt: %s/%s\n' "$PWD" "$app"