Add icon with very specific sizes & bit depths (matching how VLC player does it)

This commit is contained in:
Eric Van Albert
2025-12-18 21:44:40 -05:00
parent fd8b1b30c4
commit 0cf9d397ee
3 changed files with 1 additions and 31 deletions
+1 -4
View File
@@ -66,11 +66,8 @@ done
# Platform-specific linking
case "$OS" in
WINDOWS)
# Generate ICO file
magick library/logo.png -background transparent -colors 256 -define icon:auto-resize="128,64,48,32,16" /tmp/radiance_icon.ico
cat <<EOF >/tmp/radiance_info.rc
0 ICON "/tmp/radiance_icon.ico"
0 ICON "exe_icon.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
-27
View File
@@ -77,33 +77,6 @@ jobs:
;;
esac
- name: Install ImageMagick from source (for Windows icon)
if: runner.os == 'Linux' && matrix.target == 'x86_64-pc-windows-gnu'
run: |
# Install dependencies for building ImageMagick
sudo apt-get install -y \
build-essential \
wget \
libpng-dev \
libjpeg-dev \
libtiff-dev \
libwebp-dev \
libtool \
libltdl-dev
# Download and build ImageMagick 7
cd /tmp
wget https://imagemagick.org/archive/ImageMagick-7.1.2-11.tar.gz
tar xzf ImageMagick-*.tar.gz
rm ImageMagick-*.tar.gz
cd ImageMagick-*
./configure --prefix=/usr/local --with-modules --enable-shared
make -j$(nproc)
sudo make install
sudo ldconfig /usr/local/lib
# Verify installation
magick --version
- name: Install build tools (macOS)
if: runner.os == 'macOS'
run: |
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB