Repository Public
1#!/bin/bash2# ORIX Docs3# File: Scripts/icons.sh4# Description: Regenerates the icon artwork (design/icon/make-icon.swift) and every size of the macOS icon set from the 1024 px master.5#6# Author: Simon-Pierre Boucher7# Contact: contact@spboucher.ai8set -euo pipefail9cd "$(dirname "$0")/.."10swift design/icon/make-icon.swift design/icon11SET=App/Resources/Assets.xcassets/AppIcon.appiconset12for s in 16 32 64 128 256 512 1024; do sips -z $s $s design/icon/orix-docs-icon-1024.png --out "$SET/icon_$s.png" >/dev/null; done13mkdir -p docs/assets14sips -z 256 256 design/icon/orix-docs-icon-1024.png --out docs/assets/orix-docs-icon-256.png >/dev/null15cp design/icon/concepts-sheet.png docs/assets/icon-concepts.png16echo "Icon set regenerated."17