We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9a5ce commit 2278908Copy full SHA for 2278908
apps/array/scripts/generate-icns.sh
@@ -24,6 +24,12 @@ mkdir -p "$ICONSET_DIR"
24
SCALE=0.8125
25
26
# Generate all required icon sizes with padding
27
+# Check if sips exists (macOS only)
28
+if ! command -v sips &> /dev/null; then
29
+ echo "Warning: sips not found. Skipping ICNS generation (only supported on macOS)."
30
+ exit 0
31
+fi
32
+
33
sips -z 16 16 "$SOURCE_PNG" --out "$ICONSET_DIR/icon_16x16.png" > /dev/null
34
sips -Z $(echo "16 * $SCALE" | bc | cut -d. -f1) "$ICONSET_DIR/icon_16x16.png" --padToHeightWidth 16 16 > /dev/null
35
0 commit comments