This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
230 additions
and
325 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 |
---|---|---|
@@ -1,24 +1,50 @@ | ||
#!/bin/bash | ||
scale () { | ||
mkdir dist | ||
|
||
icon() { | ||
convert icon.png -resize $1x$1\! dist/icon_$1.png | ||
} | ||
|
||
mkdir dist | ||
scale 60 | ||
scale 120 | ||
scale 76 | ||
scale 152 | ||
scale 40 | ||
scale 80 | ||
scale 57 | ||
scale 114 | ||
scale 72 | ||
scale 144 | ||
scale 29 | ||
scale 58 | ||
scale 50 | ||
scale 100 | ||
scale 48 | ||
scale 96 | ||
scale 192 | ||
scale 32 | ||
icon 60 | ||
icon 120 | ||
icon 180 | ||
icon 76 | ||
icon 152 | ||
icon 20 | ||
icon 40 | ||
icon 80 | ||
icon 57 | ||
icon 87 | ||
icon 114 | ||
icon 72 | ||
icon 144 | ||
icon 167 | ||
icon 29 | ||
icon 58 | ||
icon 50 | ||
icon 100 | ||
icon 48 | ||
icon 96 | ||
icon 192 | ||
icon 32 | ||
convert icon.png -resize 1024x1024! -background '#CA190C' -extent 1024x1024 -gravity center dist/icon_1024.png | ||
|
||
splash() { | ||
x=$(($1 < $2 ? $1 : $2)) | ||
x=$(echo $x/1.5 | bc) | ||
convert splash.png -resize $x dist/tmp.bmp | ||
convert dist/tmp.bmp -background '#fafbfd' -gravity center -extent $1x$2 dist/splash_$1x$2.png | ||
} | ||
|
||
splash 320 480 | ||
splash 640 960 | ||
splash 768 1024 | ||
splash 1536 2048 | ||
splash 1024 768 | ||
splash 2048 1536 | ||
splash 640 1136 | ||
splash 750 1334 | ||
splash 1242 2208 | ||
splash 2208 1242 | ||
|
||
rm dist/tmp.bmp |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.