forked from zadam/trilium
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Create script to build icons for the application
- Loading branch information
1 parent
7906c8b
commit f81bf50
Showing
13 changed files
with
70 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.