Skip to content

Commit b56efb7

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 b56efb7

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

win32/build/mkico.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@echo off
2+
magick php.svg -size 512x512 php.bmp
3+
4+
for %%i in (16,24,32,48,64,128,256) do magick php.bmp -scale %%ix%%i php-ico-%%i.png
5+
6+
magick -adjoin php-ico-* php.ico
7+
8+
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 php.svg -size 512x512 php.bmp
4+
5+
for I in 16 24 32 48 64 128 256;
6+
do
7+
convert php.bmp -scale ${I}x${I} 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)