Skip to content

Commit 2278908

Browse files
committed
I am not really sure why this is in the build tbh
1 parent 4a9a5ce commit 2278908

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/array/scripts/generate-icns.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ mkdir -p "$ICONSET_DIR"
2424
SCALE=0.8125
2525

2626
# 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+
2733
sips -z 16 16 "$SOURCE_PNG" --out "$ICONSET_DIR/icon_16x16.png" > /dev/null
2834
sips -Z $(echo "16 * $SCALE" | bc | cut -d. -f1) "$ICONSET_DIR/icon_16x16.png" --padToHeightWidth 16 16 > /dev/null
2935

0 commit comments

Comments
 (0)