toot-script-condivisione-su.../script/build-icons

24 lines
628 B
Plaintext
Raw Normal View History

2023-03-16 17:58:52 +01:00
#!/bin/bash
2023-09-02 16:17:15 +02:00
# This file is part of Share₂Fedi
# https://github.com/kytta/share2fedi
#
# SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
# SPDX-License-Identifier: AGPL-3.0-only
2023-03-16 17:58:52 +01:00
# This script converts raw SVG icons to favicons according to the article:
# https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs
set -euo pipefail
if ! type "magick"; then
echo "ImageMagick ('magick') not found; exiting"
exit 1
fi
2023-03-18 02:02:20 +01:00
node script/icons.js
2023-03-16 17:58:52 +01:00
2023-03-18 02:02:20 +01:00
magick convert public/favicon-32.png public/favicon-16.png public/favicon.ico
rm public/favicon-32.png public/favicon-16.png
2023-03-16 17:58:52 +01:00
echo "Done."