Icons
Recommended tools: Icon Composer, AppIcon Generator, MakeAppIcon.
macOS¶
Files
- Optional
icon.icon(Apple Icon Composer asset),icon.icns(legacy macOS app icon), oricon.png. Icon size should be at least 512x512. - Optional
background.png(macOS DMG background). - Optional
background@2x.png(macOS DMG Retina background).
need to be placed in the buildResources directory (defaults to build). All files are optional — but it is important to provide a macOS-capable icon: .icon (preferred), .icns (legacy), or icon.png; otherwise the default Electron icon will be used.
Notes
.iconpreferred: If you setmac.iconto a.iconfile, electron-builder compiles it into an asset catalog (Assets.car) and wires it viaCFBundleIconName. This requires Xcode 26+ (actool26+) on macOS 15+..icnsaccepted: If you setmac.iconto.icns, it is copied into the app bundle and referenced viaCFBundleIconFile.- DMG volume icon: If you rely on the default DMG volume icon and only provide
.icon, consider settingdmg.iconexplicitly to an.icnsfile, as the DMG volume icon still uses.icns.
Windows (NSIS)¶
- Optional
icon.ico(Windows app icon) oricon.png. Icon size should be at least 256x256.
needs to be placed in the buildResources directory (defaults to build). It is important to provide icon.ico (or icon.png), as otherwise the default Electron icon will be used.
Linux¶
Linux icon set will be generated automatically based on the macOS icns file or common icon.png.
Or you can put them into the build/icons directory if you want to specify them yourself.
The filename must contain the size (e.g. 256x256.png) of the icon). Recommended sizes: 16, 32, 48, 64, 128, 256 (or just 512).
AppX¶
See AppX Assets.