looper/mkicns.sh
Zachary Hall a0c44bcf24
Some checks failed
Build / build-gentoo (push) Failing after 17s
Build / download-system-deps (push) Successful in 3m5s
Build / get-source-code (push) Successful in 9m6s
Build / build-deb (push) Failing after 5m15s
Build / build-appimage (push) Successful in 4m27s
Build / build-android (push) Failing after 2m52s
Build / build-windows (push) Failing after 7m11s
Add support for macOS
- Remove unused OpenMP from playback backend
  - Fix update_assets on macOS
  - Add support for Objective C++ on macOS
  - Add macOS-specific code into the Dear ImGui backend
  - Add macOS .app packaging
  - Add support for global menus, and include support for macOS global menu into the Dear ImGui backend
2025-02-09 10:11:30 -08:00

20 lines
No EOL
584 B
Bash
Executable file

#!/bin/sh
OLDDIR="$(pwd)"
while [ -n "$1" ]; do
mkdir -p $2.iconset
for size in 16 24 32 48 64 128 256 512 1024; do
for scale in 1 2; do
export realsize=$((size * scale))
export name="$2.iconset/$(basename $2)_$size"
if [ "$scale" -gt 1 ]; then
export name="$name@${scale}x"
fi
export name="$name.png"
rsvg-convert "$1" -w "$size" -h "$size" -o "$name"
done
done
iconutil -c icns --output "$2.icns" "$2.iconset"
rm -r "$2.iconset"
shift 2
done
cd "$OLDDIR"