Files
coucou/scripts/render-outfits.sh
T
LouisandClaude Opus 5.5 f4bfb499d8 iPhone step 3: CoucouKit (shared Mochi, pills, diff, models) (#210)
* iPhone step 3: CoucouKit, the code shared by the Mac and the iPhone

Moves BotEngine, the outfits, the wardrobe, PillCatalog, DiffEngine and the
models (IslandTypes, IslandScreenGeometry) unchanged from Sources/App to
Sources/CoucouKit, plus the hex color helpers. The Mac targets still compile
all of Sources/, so nothing changes for them; the iPhone target now compiles
CoucouKit too. Adds MochiStill (one frame, no timer) and a CoucouKit preview
screen on the iPhone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* CoucouKit: CGColor.white/.black/.clear for iOS (macOS-only in CoreGraphics)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-04 21:40:09 +02:00

31 lines
856 B
Bash

#!/bin/bash
# render-outfits.sh — compile and run the Mochi outfit planche renderer
# NOT in CI. Run manually: bash scripts/render-outfits.sh
# Output: /tmp/coucou-outfits.png
set -e
cd "$(dirname "$0")/.."
SDK=$(xcrun --sdk macosx --show-sdk-path)
echo "Compiling renderer..."
swiftc \
-parse-as-library \
-sdk "$SDK" \
-target arm64-apple-macosx15.0 \
NotchBuddy/Sources/CoucouKit/IslandScreenGeometry.swift \
NotchBuddy/Sources/CoucouKit/IslandTypes.swift \
NotchBuddy/Sources/CoucouKit/MochiWardrobe.swift \
NotchBuddy/Sources/CoucouKit/BotEngine.swift \
NotchBuddy/Sources/CoucouKit/MochiOutfitDrawing.swift \
scripts/RenderOutfits.swift \
-framework AppKit \
-framework SwiftUI \
-o /tmp/coucou-render-outfits \
2>&1
echo "Running renderer..."
/tmp/coucou-render-outfits
echo "Opening..."
open /tmp/coucou-outfits.png