Skip to content

Commit b0872eb

Browse files
Ayeshimshvc
andcommitted
Build/Windows: Update the Windows icon as svg and build derivatives from it
Co-Authored-By: Nurudin Imsirovic <realnurudinimsirovic@gmail.com>
1 parent 694e044 commit b0872eb

File tree

5 files changed

+59
-0
lines changed

5 files changed

+59
-0
lines changed

win32/build/mkico.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@magick convert -size 512x512 php.svg php.bmp
2+
3+
@for %%i in (16,24,32,48,64,128,256) do @magick convert -scale %%ix%%i php.bmp php-ico-%%i.png
4+
5+
@magick convert -adjoin php-ico-* php.ico
6+
7+
@del /f /q php-ico-*.png php.bmp

win32/build/mkico.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
convert -size 512x512 php.svg php.bmp
4+
5+
for I in 16 24 32 48 64 128 256;
6+
do
7+
convert -scale ${I}x${I} php.bmp php-ico-${I}.png;
8+
done
9+
10+
convert -adjoin php-ico-* php.ico
11+
12+
rm -f php-ico-*.png php.bmp

win32/build/php-classic.svg

Lines changed: 24 additions & 0 deletions
Loading

win32/build/php.ico

38.1 KB
Binary file not shown.

win32/build/php.svg

Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)