Source Icon
The master icon is located at:Icon Structure
Generated icons are stored in thebuild/icons/ directory:
Generating Icons
Prepare the source icon
Update or replace
resources/icon-1024.png with your new icon.The source icon must be:
- 1024x1024 pixels
- PNG format
- High quality (no compression artifacts)
Run the icon builder
- Reads
resources/icon-1024.png - Generates all required PNG sizes (16x16 through 1024x1024)
- Creates
build/icons/icon.icnsfor macOS - Creates
build/icons/icon.icofor Windows - Organizes icons into platform-specific directories
Icon Requirements by Platform
macOS (.icns)
The macOS icon bundle includes multiple resolutions for Retina displays:
- 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, 1024x1024
- Both 1x and 2x variants for each size
Windows (.ico)
The Windows icon file includes:
- 16x16, 24x24, 32x32, 48x48, 64x64, 128x128, 256x256
Linux
Linux uses individual PNG files at various sizes, referenced in the AppImage.Build Configuration
Thepackage.json build configuration specifies icon paths:
Design Guidelines
Testing Icons Locally
To preview icons in a local build:dist/<platform>-unpacked/, where you can inspect the generated app bundle with your new icons.
Preview on macOS
Preview on Windows
Preview on Linux
Manual Icon Updates
If you need to manually update a specific platform icon without regenerating all icons:- Replace the file in
build/icons/mac/orbuild/icons/win/ - Rebuild with
npm run build:mac,npm run build:win, ornpm run build:linux
Always keep
resources/icon-1024.png as the source of truth. Manual edits to generated icons will be overwritten if you re-run electron-icon-builder.