This script aims to make generating icons for Electron projects easier.
At it's stat it generates a full set of icons for a Mac application in an .iconset folder. The icons can then be converted to a .icns file with iconutil -c icns path/to/icon.iconset
The script also generates a full set of icons for an Electron application.
This script is dependent on ImageMagick. You must install ImageMagick first.
Download the install ImageMagic from their website.
Most Linux distributions provide ImageMagick as a package.
OS | Command |
---|---|
Debian/Ubuntu/Mint | sudo apt-get install imagemagick |
Fedora/Red Hat | sudo yum install imagemagick |
MacOS with Homebrew | sudo brew install imagemagick |
git clone https://github.com/petarmihaylov/electron-icon-generator
cd electron-icon-generator
chmod +x electron-icon-generator-script.sh
./electron-icon-generator-script.sh srcfile dstpath
srcfile
- The source png image. Minimum 1024x1024 pixels.
dstpath
- The destination path where the icons will be generated.
Petar Mihaylov (petarmihaylov.me)
Inspired by smallmouou's iOS Icon Generator