2021-10-13 00:59:25 +01:00
|
|
|
#/bin/bash
|
|
|
|
|
2022-04-27 08:55:34 +01:00
|
|
|
# ICO
|
|
|
|
|
2022-01-03 20:54:08 +00:00
|
|
|
inkscape -w 16 -h 16 -o polymc_16.png org.polymc.PolyMC.svg
|
|
|
|
inkscape -w 24 -h 24 -o polymc_24.png org.polymc.PolyMC.svg
|
|
|
|
inkscape -w 32 -h 32 -o polymc_32.png org.polymc.PolyMC.svg
|
|
|
|
inkscape -w 48 -h 48 -o polymc_48.png org.polymc.PolyMC.svg
|
|
|
|
inkscape -w 64 -h 64 -o polymc_64.png org.polymc.PolyMC.svg
|
2022-01-03 22:46:05 +00:00
|
|
|
inkscape -w 128 -h 128 -o polymc_128.png org.polymc.PolyMC.svg
|
2021-10-13 00:59:25 +01:00
|
|
|
|
2021-12-31 21:36:59 +00:00
|
|
|
convert polymc_128.png polymc_64.png polymc_48.png polymc_32.png polymc_24.png polymc_16.png polymc.ico
|
2021-10-13 00:59:25 +01:00
|
|
|
|
2022-04-27 08:55:34 +01:00
|
|
|
rm -f polymc_*.png
|
|
|
|
|
|
|
|
inkscape -w 1024 -h 1024 -o polymc_1024.png org.polymc.PolyMC.bigsur.svg
|
|
|
|
|
|
|
|
mkdir polymc.iconset
|
|
|
|
|
|
|
|
sips -z 16 16 polymc_1024.png --out polymc.iconset/icon_16x16.png
|
|
|
|
sips -z 32 32 polymc_1024.png --out polymc.iconset/icon_16x16@2x.png
|
|
|
|
sips -z 32 32 polymc_1024.png --out polymc.iconset/icon_32x32.png
|
|
|
|
sips -z 64 64 polymc_1024.png --out polymc.iconset/icon_32x32@2x.png
|
|
|
|
sips -z 128 128 polymc_1024.png --out polymc.iconset/icon_128x128.png
|
|
|
|
sips -z 256 256 polymc_1024.png --out polymc.iconset/icon_128x128@2x.png
|
|
|
|
sips -z 256 256 polymc_1024.png --out polymc.iconset/icon_256x256.png
|
|
|
|
sips -z 512 512 polymc_1024.png --out polymc.iconset/icon_256x256@2x.png
|
|
|
|
sips -z 512 512 polymc_1024.png --out polymc.iconset/icon_512x512.png
|
|
|
|
cp polymc_1024.png polymc.iconset/icon_512x512@2x.png
|
2021-10-13 00:59:25 +01:00
|
|
|
|
2022-04-27 08:55:34 +01:00
|
|
|
iconutil -c icns polymc.iconset
|
2021-10-13 00:59:25 +01:00
|
|
|
|
2021-12-31 21:36:59 +00:00
|
|
|
rm -f polymc_*.png
|
|
|
|
rm -rf polymc.iconset
|
2022-01-09 19:18:51 +00:00
|
|
|
|
|
|
|
for dir in ../launcher/resources/*/scalable
|
|
|
|
do
|
|
|
|
cp -v org.polymc.PolyMC.svg $dir/launcher.svg
|
|
|
|
done
|