electron-builder picks these up by convention (directories.buildResources),
so nothing here is wired into package.json.
| File | Role |
|---|---|
icon.ico |
What the build consumes, for the installer and the installed app |
icon-1024.png |
Master artwork — regenerate the other two from this one |
icon.png |
256x256 raster, handy for docs and listings |
icon.ico ships seven layers — 16, 24, 32, 48, 64, 128 and 256 px at 32 bpp —
so the icon stays sharp in the taskbar, the desktop shortcut and the Programs
list alike. Windows needs the 256x256 layer in particular: without it
electron-builder refuses the build.
After replacing the icon, run npm run dist and confirm the build log does
not say default Electron icon is used — that line means the icon was not
picked up.