SPB Git

spb/zyquo-agent Public MIT

The autonomous agent that actually operates your Mac — plans, runs real commands, verifies its own work.

Swift 94.7% Shell 4.1% Python 0.7% Makefile 0.5%
1.6 KB · 48 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  generate-icon.sh4#  Zyquo Agent5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9#  SVG → Resources/AppIcon.icns + menu bar template PNGs.10#  Sources of truth: assets/icon/zyquo-agent.svg (128px+ slots),11#  assets/icon/zyquo-agent-small.svg (16/32px slots — simplified variant),12#  assets/icon/zyquo-agent-template.svg (menu bar glyph).13#  Rasterized with rsvg-convert (librsvg).14#15set -euo pipefail16cd "$(dirname "$0")/.."1718RSVG=${RSVG:-/opt/homebrew/bin/rsvg-convert}19SVG=assets/icon/zyquo-agent.svg20SVG_SMALL=assets/icon/zyquo-agent-small.svg21SVG_TEMPLATE=assets/icon/zyquo-agent-template.svg22ICONSET=$(mktemp -d)/AppIcon.iconset23mkdir -p "$ICONSET" Resources2425render() { "$RSVG" -w "$3" -h "$3" "$1" -o "$2"; }2627echo "=== Rendering iconset ==="28render "$SVG_SMALL" "$ICONSET/icon_16x16.png"      1629render "$SVG_SMALL" "$ICONSET/icon_16x16@2x.png"   3230render "$SVG_SMALL" "$ICONSET/icon_32x32.png"      3231render "$SVG_SMALL" "$ICONSET/icon_32x32@2x.png"   6432render "$SVG"       "$ICONSET/icon_128x128.png"    12833render "$SVG"       "$ICONSET/icon_128x128@2x.png" 25634render "$SVG"       "$ICONSET/icon_256x256.png"    25635render "$SVG"       "$ICONSET/icon_256x256@2x.png" 51236render "$SVG"       "$ICONSET/icon_512x512.png"    51237render "$SVG"       "$ICONSET/icon_512x512@2x.png" 10243839echo "=== Building icns ==="40iconutil -c icns "$ICONSET" -o Resources/AppIcon.icns4142echo "=== Menu bar template icon (18pt @1x/@2x) ==="43render "$SVG_TEMPLATE" Resources/MenuBarIcon.png    1844render "$SVG_TEMPLATE" Resources/MenuBarIcon@2x.png 364546rm -rf "$(dirname "$ICONSET")"47echo "Done: Resources/AppIcon.icns + Resources/MenuBarIcon(@2x).png"48