clean up script

This commit is contained in:
Baptiste Augrain 2021-01-18 11:21:32 +01:00
parent 60de1450bc
commit c12606a81b

View file

@ -13,15 +13,12 @@ check_programs() {
check_programs "icns2png" "composite" "convert" "png2icns" "icotool"
pwd
for file in vscode/resources/darwin/*
do
if [ -f "$file" ]; then
name=$(basename $file '.icns')
if [[ $name != 'code' ]] && [ ! -f "src/resources/darwin/$name.icns" ]; then
echo "src/resources/darwin/$name.icns"
icns2png -x -s 512x512 $file -o .
composite -blend 100% -geometry +323+365 icons/corner_512.png "${name}_512x512x32.png" "$name.png"
@ -51,4 +48,4 @@ do
rm "${name}_9_256x256x32.png" "${name}.png"
fi
fi
done
done