An icon generator to generate all the icon files needed for electron packaging
Install globally using
npm install -g @uosjs/icon-builder
To use
uosjs-icon-builder --input=/absolute/path/file.png --output=./relative/path/to/folder
Install locally
npm install --save-dev @uosjs/icon-builder
To use
./node_modules/.bin/uosjs-icon-builder --input=/absolute/path/file.png --output=./relative/path/to/folder
--output, -o = [String] Folder to create files
--input, -i = [String] Path to PNG file
--flatten, -f Flatten output structure
Input file should be 1024px x 1024px or larger. Make sure it is a 1 to 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
When flatten option is enabled
[output dir]
-[icons]
- icon.icns
- icon.ico
- 16x16.png
- 24x24.png
...
...
- 512x512.png
- 1024x1024.png