Based on https://github.com/jaretburkett/electron-icon-maker.
ℹ️ This is a pure ESM module.
Run yarn global add @ffflorian/electron-icon-generator
or npm i -g @ffflorian/electron-icon-generator
electron-icon-generator --input /path/to/image.png --output /path/to/folder
Usage: electron-icon-generator [options]
An icon generator to generate all the icon files needed for electron packaging
Options:
-V, --version output the version number
-i, --input <file> Input PNG file (recommended size: 1024x1024) (default: "./icon.png")
-o, --output <folder> Folder to output new icons folder (default: "./")
-s, --silent Don't log anything beside errors
-h, --help output usage information
Input file should be 1024*1024px or larger. Make sure it is a 1:1 aspect ratio on width to height.
[output dir]
-[icons]
-[mac]
- icon.icns
-[png]
- 16x16.png
- 24x24.png
...
- 512x512.png
- 1024x1024.png
-[win]
-icon.ico