Skip to content

Commit

Permalink
Add ICNS file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindkumarc committed Oct 21, 2015
1 parent 4c60687 commit 8a3525b
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 5 deletions.
28 changes: 23 additions & 5 deletions generate-images.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
#!/bin/bash
rm images/*.png
cd svg
for file in $(ls *.svg); do
for file in $(cd svg && ls *.svg); do
filename=${file%%.svg}
echo "Rasterizing $filename..."

convert \
-density 1200 \
-resize 18x18 \
-background none \
$file ../images/$filename.png
svg/$file images/$filename.png

convert \
-density 1200 \
-resize 36x36 \
-background none \
$file ../images/$filename@2x.png

svg/$file images/$filename@2x.png
done

echo 'Creating ICNS...'
convert \
-density 1200 \
-resize 1024x1024 \
-background none \
svg/menuActive.svg images/DockerMenu.png
mkdir images/DockerMenu.iconset
sips -z 16 16 images/DockerMenu.png --out images/DockerMenu.iconset/icon_16x16.png
sips -z 32 32 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected]
sips -z 32 32 images/DockerMenu.png --out images/DockerMenu.iconset/icon_32x32.png
sips -z 64 64 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected]
sips -z 128 128 images/DockerMenu.png --out images/DockerMenu.iconset/icon_128x128.png
sips -z 256 256 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected]
sips -z 256 256 images/DockerMenu.png --out images/DockerMenu.iconset/icon_256x256.png
sips -z 512 512 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected]
sips -z 512 512 images/DockerMenu.png --out images/DockerMenu.iconset/icon_512x512.png
cp images/DockerMenu.png images/DockerMenu.iconset/[email protected]
iconutil -c icns images/DockerMenu.iconset
rm -R images/DockerMenu.iconset
1 change: 1 addition & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = function (grunt) {
options: {
name: 'Docker Menu',
dir: 'build/app',
icon: 'images/DockerMenu.icns',
asar: true,
overwrite: true,
out: 'build',
Expand Down
Binary file added images/DockerMenu.icns
Binary file not shown.
Binary file added images/DockerMenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/circleGreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/circleRed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/menuActive.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/menuPressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/menuTemplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a3525b

Please sign in to comment.