Skip to content

Commit

Permalink
update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Feb 21, 2014
1 parent 1e52258 commit 96f1e34
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion args.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified menu_icon.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 [email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ $ ->
$('#buttonAbout').on 'click', ->
gui.Shell.openExternal 'https://github.com/shadowsocks/shadowsocks-gui'

tray = new gui.Tray icon: 'menu_icon.png'
tray = new gui.Tray icon: 'menu_icon@2x.png'
menu = new gui.Menu()

tray.on 'click', ->
Expand Down
2 changes: 1 addition & 1 deletion update.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions utils/make_icon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

LAST=`pwd`
pushd /tmp
mkdir icon.iconset
sips -z 16 16 $LAST/icon.png --out icon.iconset/icon_16x16.png
sips -z 32 32 $LAST/icon.png --out icon.iconset/[email protected]
sips -z 32 32 $LAST/icon.png --out icon.iconset/icon_32x32.png
sips -z 64 64 $LAST/icon.png --out icon.iconset/[email protected]
sips -z 128 128 $LAST/icon.png --out icon.iconset/icon_128x128.png
sips -z 256 256 $LAST/icon.png --out icon.iconset/[email protected]
sips -z 256 256 $LAST/icon.png --out icon.iconset/icon_256x256.png
sips -z 512 512 $LAST/icon.png --out icon.iconset/[email protected]
sips -z 512 512 $LAST/icon.png --out icon.iconset/icon_512x512.png
cp $LAST/icon.png icon.iconset/[email protected]
iconutil -c icns icon.iconset
rm -R icon.iconset
popd
mv /tmp/icon.icns utils/shadowsocks.icns
Binary file modified utils/shadowsocks.icns
Binary file not shown.

0 comments on commit 96f1e34

Please sign in to comment.