Generate ico and icns from png

`npm run icon-gen` builds icon files from png files in the images
directory, outputting to build/icon.{ico,icns} (the expected location
for electron-builder).

// FREEBIE
This commit is contained in:
lilia 2017-04-04 17:34:20 -07:00 committed by Scott Nonnenberg
parent 3b287185ef
commit a99890d254
No known key found for this signature in database
GPG Key ID: A4931C09644C654B
10 changed files with 4 additions and 2 deletions

BIN
images/1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
images/128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
images/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

BIN
images/24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
images/256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
images/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
images/48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
images/512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
images/64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -26,7 +26,8 @@
"grunt-gitinfo": "^0.1.7",
"grunt-jscs": "^1.1.0",
"grunt-preen": "^1.0.0",
"grunt-saucelabs": "^8.3.3"
"grunt-saucelabs": "^8.3.3",
"icon-gen": "^1.0.7"
},
"scripts": {
"test": "grunt test",
@ -34,7 +35,8 @@
"start": "electron .",
"pack": "build --dir --em.NODE_ENV=$NODE_ENV",
"dist": "build --em.NODE_ENV=$NODE_ENV",
"release": "build --em.NODE_ENV=$NODE_ENV"
"release": "build --em.NODE_ENV=$NODE_ENV",
"icon-gen": "icon-gen -r -t png -m 'ico,icns' -n 'ico=icon,icns=icon' -i ./images -o ./build"
},
"build": {
"appId": "org.whispersystems.signal-desktop",