Skip to content

Instantly share code, notes, and snippets.

@scottharwell
Created August 6, 2020 11:17
Show Gist options
  • Save scottharwell/0389a189d5a6f8d721163589a4618087 to your computer and use it in GitHub Desktop.
Save scottharwell/0389a189d5a6f8d721163589a4618087 to your computer and use it in GitHub Desktop.
Fish script that converts a 1024x1024px 72DPI image to the file sizes required by XCode
#!/usr/bin/env fish
if ! test -e ./AppIcon.png
echo "🚨 App icon file not found"
exit
end
echo "🎬 Creating Icons!"
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
cp ./AppIcon.png ./[email protected]
mogrify -resize 167 ./[email protected]
mogrify -resize 152 ./[email protected]
mogrify -resize 76 ./[email protected]
mogrify -resize 80 ./[email protected]
mogrify -resize 40 ./[email protected]
mogrify -resize 58 ./[email protected]
mogrify -resize 29 ./[email protected]
mogrify -resize 40 ./[email protected]
mogrify -resize 20 ./[email protected]
mogrify -resize 180 ./[email protected]
mogrify -resize 120 ./[email protected]
mogrify -resize 120 ./[email protected]
mogrify -resize 80 ./[email protected]
mogrify -resize 87 ./[email protected]
mogrify -resize 60 ./[email protected]
echo "🏁 Icons Created!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment