Skip to content

A simple script to make generating icon for an Electron app easier.

Notifications You must be signed in to change notification settings

petarmihaylov/electron-icon-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Electron Icon Generator

Electron Icon Generator Demo

Description

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.

Prerequisites

This script is dependent on ImageMagick. You must install ImageMagick first.

ImageMagick Website

http://www.imagemagick.org

On Windows

Download the install ImageMagic from their website.

On Linux/Mac

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

Usage

Clone and Chmod

git clone https://github.com/petarmihaylov/electron-icon-generator
cd electron-icon-generator
chmod +x electron-icon-generator-script.sh

Run Script

./electron-icon-generator-script.sh srcfile dstpath

Parameters

srcfile - The source png image. Minimum 1024x1024 pixels.

dstpath - The destination path where the icons will be generated.

Author

Petar Mihaylov (petarmihaylov.me)

License

MIT

Credits

Inspired by smallmouou's iOS Icon Generator

About

A simple script to make generating icon for an Electron app easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages