Skip to content

Commit

Permalink
build: Create script to build icons for the application
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Aug 3, 2024
1 parent 7906c8b commit f81bf50
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 100 deletions.
18 changes: 18 additions & 0 deletions bin/create-icons.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

script_dir=$(realpath $(dirname $0))
cd "${script_dir}/../images/app-icons"
magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png"

# Build PNGs
magick -background none "../icon-color.svg" -resize "128x128" "./png/128x128.png"
magick -background none "../icon-color.svg" -resize "256x256" "./png/256x256.png"
magick -background none "../icon-purple.svg" -resize "256x256" "./png/256x256-dev.png"

# Build Mac .icns
magick -background none "../icon-color.svg" -resize "512x512" "./png/512x512.png"
icnsutil compose -f "mac/icon.icns" "./png/512x512.png"
rm "./png/512x512.png"

# Build Windows icon
magick -background none "../icon-color.svg" -define icon:auto-resize=16,32,48,64,128,256 "./win/icon.ico";
Binary file modified images/app-icons/ios/apple-touch-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 images/app-icons/mac/icon.icns
Binary file not shown.
Binary file modified images/app-icons/png/128x128.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/app-icons/png/256x256-dev.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/app-icons/png/256x256.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/app-icons/win/icon.ico
Binary file not shown.
15 changes: 4 additions & 11 deletions images/icon-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 26 additions & 10 deletions images/icon-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions images/icon-grey.svg

This file was deleted.

Loading

0 comments on commit f81bf50

Please sign in to comment.