Every Electron application needs a custom icon. Mac needs an icns
file and Windows needs an ico
file. We'll learn how to use a npm module, electron-icon-maker
, that takes a 1024x1024 PNG and then outputs all the files we need.
Note, tried this with latest electron-icon-maker and it has issues because of breaking change to icon-gen. I had to lock my icon-gen version to 1.0.7 (devDependencies in package.json) to get this to work. "iconify": "node node_modules/electron-icon-maker/index.js -i build-assets/sosa.png -o build/" Created iconify script to get it to work