提前准备好一张ICON.png 1024*1024
安装brew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
更新brew
sudo brew update
安装ImageMagick
sudo brew install ImageMagick
下载ios-icon-generator工程
git clone https://github.com/smallmuou/ios-icon-generator
cd ios-icon-generator/
运行ios-icon-generator脚本
chmod 777 ios-icon-generator.sh
./ios-icon-generator.sh ~/Downloads/ICON.png ~/output
查看icon
ls -l ~/output/
打开目录查看文件
open ~/output/
效果图如下:

网友评论