# AI to SVG
inkscape --file=icon.ai --export-plain-svg=icon.svg
# macOS
qlmanage -t -s 1000 -o . picture.svg
brew install librsvg
rsvg-convert -h 32 icon.svg > icon-32.png
rsvg-convert -h 200 icon.svg > icon.png
rsvg-convert -h 200 icon.svg | oxipng -o max -i 0 --strip safe - > icon.png
# 通过替换 currentColor 来生成不同颜色的图标
cat ./svg/Home.svg | sed 's/currentColor/#999999/g' | rsvg-convert -h 48 | oxipng -o max -i 0 --strip safe - > HomeInactive.png
cat ./svg/Home.svg | sed 's/currentColor/#4579F6/g' | rsvg-convert -h 48 | oxipng -o max -i 0 --strip safe - > HomeActive.png