This document explains how to set up and build Zing with a custom application icon.
- Create or download a PNG image for your icon (recommended size: 256x256 pixels)
- Save it as
assets/icon.pngin the project directory
For macOS, you'll need an .icns file:
# Install the required tool (on macOS)
brew install makeicns
# Convert your PNG to ICNS
makeicns -in assets/icon.png -out assets/icon.icnsFor Windows, you'll need an .ico file:
# You can use online converters or tools like ImageMagick
convert assets/icon.png -define icon:auto-resize=256,128,64,48,32,16 assets/icon.icoTo create a macOS application bundle with the icon:
# Install cargo-bundle
cargo install cargo-bundle
# Create the bundle
cargo bundle --release
# The bundled app will be in target/release/bundle/osx/The icon will be automatically used when running the application normally:
cargo run --releaseIf the icon doesn't appear:
- Make sure the icon file paths in
Cargo.tomlare correct - For macOS, ensure the
.icnsfile is properly formatted - For Windows, ensure the
.icofile contains multiple resolutions - Rebuild the application completely after adding the icon files