pollymc/program_info/genicons.sh

40 lines
1.5 KiB
Bash
Raw Normal View History

#/bin/bash
2022-04-27 13:25:34 +05:30
# ICO
2022-08-19 18:26:46 +05:30
inkscape -w 16 -h 16 -o pollymc_16.png org.fn2006.PollyMC.svg
inkscape -w 24 -h 24 -o pollymc_24.png org.fn2006.PollyMC.svg
inkscape -w 32 -h 32 -o pollymc_32.png org.fn2006.PollyMC.svg
inkscape -w 48 -h 48 -o pollymc_48.png org.fn2006.PollyMC.svg
inkscape -w 64 -h 64 -o pollymc_64.png org.fn2006.PollyMC.svg
inkscape -w 128 -h 128 -o pollymc_128.png org.fn2006.PollyMC.svg
2022-08-19 18:26:46 +05:30
convert pollymc_128.png pollymc_64.png pollymc_48.png pollymc_32.png pollymc_24.png pollymc_16.png pollymc.ico
2022-08-19 18:26:46 +05:30
rm -f pollymc_*.png
2022-04-27 13:25:34 +05:30
2022-08-19 18:26:46 +05:30
inkscape -w 1024 -h 1024 -o pollymc_1024.png org.fn2006.PollyMC.bigsur.svg
2022-04-27 13:25:34 +05:30
2022-08-19 18:26:46 +05:30
mkdir pollymc.iconset
2022-04-27 13:25:34 +05:30
2022-08-19 18:26:46 +05:30
magick pollymc_1024.png -resize 16x16 pollymc.iconset/icon_16x16.png
magick pollymc_1024.png -resize 32x32 pollymc.iconset/icon_16x16@2x.png
magick pollymc_1024.png -resize 32x32 pollymc.iconset/icon_32x32.png
magick pollymc_1024.png -resize 64x64 pollymc.iconset/icon_32x32@2x.png
magick pollymc_1024.png -resize 128x128 pollymc.iconset/icon_128x128.png
magick pollymc_1024.png -resize 256x256 pollymc.iconset/icon_128x128@2x.png
magick pollymc_1024.png -resize 256x256 pollymc.iconset/icon_256x256.png
magick pollymc_1024.png -resize 512x512 pollymc.iconset/icon_256x256@2x.png
magick pollymc_1024.png -resize 512x512 pollymc.iconset/icon_512x512.png
cp pollymc_1024.png pollymc.iconset/icon_512x512@2x.png
2022-08-19 18:26:46 +05:30
icnsify -i pollymc_1024.png -o pollymc.icns
2022-08-19 18:26:46 +05:30
rm -f pollymc_*.png
rm -rf pollymc.iconset
for dir in ../launcher/resources/*/scalable
do
2022-08-19 18:26:46 +05:30
cp -v org.fn2006.PollyMC.svg $dir/launcher.svg
done