Skip to content

Commit

Permalink
AppIcon png2ico script added
Browse files Browse the repository at this point in the history
  • Loading branch information
ahzf committed Jun 23, 2024
1 parent d2a6624 commit 22bcc59
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 0 deletions.
13 changes: 13 additions & 0 deletions generate_icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# sudo apt-get install imagemagick
# Verification: https://redketchup.io/icon-editor
rm src/icons/chargy_shield3.ico -rf
convert src/icons/chargy_shield3/chargy_shield3_16x16.png \
src/icons/chargy_shield3/chargy_shield3_32x32.png \
src/icons/chargy_shield3/chargy_shield3_48x48.png \
src/icons/chargy_shield3/chargy_shield3_64x64.png \
src/icons/chargy_shield3/chargy_shield3_128x128.png \
src/icons/chargy_shield3/chargy_shield3_256x256.png \
src/icons/chargy_shield3/chargy_shield3_512x512.png \
src/icons/chargy_shield3.ico
21 changes: 21 additions & 0 deletions generate_icons_MacOSX.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

rm src/icons/chargy_shield3.iconset -rf
mkdir src/icons/chargy_shield3.iconset

cp src/icons/chargy_shield3/chargy_shield3_16x16.png chargy_shield3.iconset/icon_16x16.png
cp src/icons/chargy_shield3/chargy_shield3_32x32.png chargy_shield3.iconset/[email protected]

cp src/icons/chargy_shield3/chargy_shield3_32x32.png chargy_shield3.iconset/icon_32x32.png
cp src/icons/chargy_shield3/chargy_shield3_64x64.png chargy_shield3.iconset/[email protected]

cp src/icons/chargy_shield3/chargy_shield3_128x128.png chargy_shield3.iconset/icon_128x128.png
cp src/icons/chargy_shield3/chargy_shield3_256x256.png chargy_shield3.iconset/[email protected]

cp src/icons/chargy_shield3/chargy_shield3_256x256.png chargy_shield3.iconset/icon_256x256.png
cp src/icons/chargy_shield3/chargy_shield3_512x512.png chargy_shield3.iconset/[email protected]

cp src/icons/chargy_shield3/chargy_shield3_512x512.png chargy_shield3.iconset/icon_512x512.png
cp src/icons/chargy_shield3/chargy_shield3_1024x1024.png chargy_shield3.iconset/[email protected]

iconutil -c icns chargy_shield2.iconset
Binary file added src/icons/chargy_shield3.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/chargy_shield3/chargy_shield3_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/chargy_shield3/chargy_shield3_32x32.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 added src/icons/chargy_shield3/chargy_shield3_48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/icons/chargy_shield3/chargy_shield3_64x64.png
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 22bcc59

Please sign in to comment.