SPB Git

spb/zyquo-mlx Public MIT

The local MLX foundry for your Mac — run, fine-tune, quantize, and ship models. Nothing leaves your machine.

Swift 93.4% Python 3.8% Makefile 2.2% Shell 0.5%
1.2 KB · 45 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  make-icon.sh4#  Zyquo MLX5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9#  Icon pipeline (charter Phase 5): SVG → PNGs → AppIcon.iconset →10#  AppIcon.icns. The SVG is the source of truth; 16/32 px sizes use the11#  simplified variant (Z only) for sharpness.12#13set -euo pipefail1415cd "$(dirname "$0")/.."16SRC=assets/icon/zyquo-mlx.svg17SRC_SMALL=assets/icon/zyquo-mlx-small.svg18ICONSET=assets/icon/AppIcon.iconset19OUT=assets/icon/AppIcon.icns2021command -v rsvg-convert >/dev/null || { echo "error: rsvg-convert missing (brew install librsvg)"; exit 1; }2223rm -rf "$ICONSET"24mkdir -p "$ICONSET"2526render() { # $1 svg, $2 px, $3 name27    rsvg-convert -w "$2" -h "$2" "$1" -o "$ICONSET/$3"28}2930# Small sizes: simplified variant31render "$SRC_SMALL" 16   icon_16x16.png32render "$SRC_SMALL" 32   icon_16x16@2x.png33render "$SRC_SMALL" 32   icon_32x32.png34# 64 px and up: full anvil artwork35render "$SRC" 64   icon_32x32@2x.png36render "$SRC" 128  icon_128x128.png37render "$SRC" 256  icon_128x128@2x.png38render "$SRC" 256  icon_256x256.png39render "$SRC" 512  icon_256x256@2x.png40render "$SRC" 512  icon_512x512.png41render "$SRC" 1024 icon_512x512@2x.png4243iconutil -c icns "$ICONSET" -o "$OUT"44echo "→ $OUT"45