Some checks failed
Build / build-gentoo (push) Failing after 14s
Build / download-system-deps (push) Successful in 3m28s
Build / get-source-code (push) Successful in 9m18s
Build / build-deb (push) Failing after 3m41s
Build / build-appimage (push) Successful in 4m12s
Build / build-android (push) Failing after 2m47s
Build / build-windows (push) Failing after 7m10s
- 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
20 lines
No EOL
584 B
Bash
Executable file
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" |