diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-21 19:30:39 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-21 19:30:39 +0100 |
| commit | cc119f1cbb0b3bbd0c5453a5b9c5ce4c7f2a5df5 (patch) | |
| tree | b6bd9f6f94eda70ba99360524987de677893f5f7 /scripts | |
| parent | feat(treewide): Commit MVP (diff) | |
| download | web-client-cc119f1cbb0b3bbd0c5453a5b9c5ce4c7f2a5df5.zip | |
build(treewide): Provide a working `manifest.json` file
The previous one had no really working images.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_logo.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/generate_logo.sh b/scripts/generate_logo.sh new file mode 100755 index 0000000..af89bc8 --- /dev/null +++ b/scripts/generate_logo.sh @@ -0,0 +1,30 @@ +#! /bin/sh + +if [ -f "./dist/favicon-1024.png" ]; then + # Bail out early + exit 0 +fi + +set -x + +magick ./public/logo.svg -resize 1024x1024 -transparent white ./dist/favicon-1024.png + +magick ./dist/favicon-1024.png -resize 16x16 ./dist/favicon-16.png +magick ./dist/favicon-1024.png -resize 32x32 ./dist/favicon-32.png +magick ./dist/favicon-1024.png -resize 64x64 ./dist/favicon-64.png +magick ./dist/favicon-1024.png -resize 128x128 ./dist/favicon-128.png +magick ./dist/favicon-1024.png -resize 256x256 ./dist/favicon-256.png +magick ./dist/favicon-1024.png -resize 512x512 ./dist/favicon-512.png + +magick \ + ./dist/favicon-16.png \ + ./dist/favicon-32.png \ + ./dist/favicon-64.png \ + ./dist/favicon-128.png \ + ./dist/favicon-256.png \ + ./dist/favicon-512.png \ + ./dist/favicon-1024.png \ + -colors 256 \ + ./public/favicon.ico + +# vim: ft=sh |
