Skip to content

Commit e7c16d2

Browse files
Ayeshcmb69
authored andcommitted
Build/Windows: Update the Windows icon as svg and build derivatives from it
Co-Authored-By: Nurudin Imsirovic <realnurudinimsirovic@gmail.com> Closes GH-14964.
1 parent aa006f1 commit e7c16d2

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ PHP NEWS
2626
- Standard:
2727
. Change highlight_string() and print_r() return type to string|true. (Ayesh)
2828

29+
- Windows:
30+
. Update the icon of the Windows executables, e.g. php.exe. (Ayesh,
31+
Nurudin Imširović)
32+
2933
- XML:
3034
. Fixed bug #81481 (xml_get_current_byte_index limited to 32-bit numbers on
3135
64-bit builds). (nielsdos)

win32/build/mkico.bat

+8
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

+12
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

+24
Loading

win32/build/php.ico

38.1 KB
Binary file not shown.

win32/build/php.svg

+16
Loading

0 commit comments

Comments
 (0)