提前準備好一張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/
效果圖如下:
Paste_Image.png