Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
12345678910111213141516171819202122232425#!/bin/bashset -euo pipefailif [[ $# != 0 ]]; then printf 'Usage: %s\n' "$0" >&2; exit 2; firoot=$(cd "$(dirname "$0")/../.." && pwd)mkdir -p "$root/.build" "$root/Sources/ParcelUI/Resources/AppIcons"work=$(mktemp -d "$root/.build/app-icon-render.XXXXXX")trap 'rm -rf "$work"' EXITTMPDIR="$work" /usr/bin/xcrun swift "$root/Packaging/AlternateIcons/IconTool.swift" prepare "$root" "$work"# Quick Look uses the native SVG renderer; artwork has no fonts or external references.if ! qlmanage -t -s 1024 -o "$work" "$work"/*.svg > "$work/render.log" 2>&1; then /bin/cat "$work/render.log" >&2 exit 1fifor source in "$work"/*.svg; do filename=$(basename "$source" .svg) [[ -f $work/$filename.svg.png ]] || { printf 'Rendering failed: %s\n' "$filename" >&2; exit 1; } mv "$work/$filename.svg.png" "$work/$filename.png"doneTMPDIR="$work" /usr/bin/xcrun swift "$root/Packaging/AlternateIcons/IconTool.swift" finish "$work" \ "$root/Resources/Assets.xcassets/AppIcon.appiconset""$root/Scripts/check-app-icons.sh" --resources "$work""$root/Scripts/check-app-icons.sh" --catalog "$root/Resources/Assets.xcassets/AppIcon.appiconset"for image in "$work"/*.png; do cp "$image" "$root/Sources/ParcelUI/Resources/AppIcons/"; doneprintf 'Rendered 24 rounded app icons and the complete default icon catalog.\n'