LoginSignup
3
2

More than 5 years have passed since last update.

iOSアプリのアイコンと起動画面の更新をRakefileを使って自動化する

Last updated at Posted at 2016-03-23

昨日からの続きで、PictRubyのレポジトリの中に組み込んで1コマンドで更新できるようにした。

$ cd ~/Document/PictRuby
$ cd Tools/Icon
$ rake
ruby s9icongen.rb icon.png
    29x29: icons/Icon-29.png
    58x58: icons/Icon-29@2x.png
    87x87: icons/Icon-29@3x.png
    40x40: icons/Icon-40.png
    80x80: icons/Icon-40@2x.png
  120x120: icons/Icon-40@3x.png
  120x120: icons/Icon-60@2x.png
  180x180: icons/Icon-60@3x.png
    76x76: icons/Icon-76.png
  152x152: icons/Icon-76@2x.png
  120x120: icons/Icon-120.png
  512x512: icons/iTunesArtwork
1024x1024: icons/iTunesArtwork@2x
ruby s9splashgen.rb splash.png universal
  320x480(2x) ->   640x960: screens/Default@2x~iphone.png
  320x568(2x) ->  640x1136: screens/Default-568h@2x~iphone.png
  375x667(2x) ->  750x1334: screens/Default-667h@2x~iphone.png
  414x736(3x) -> 1242x2208: screens/Default-736h@3x~iphone.png
 768x1024(1x) ->  768x1024: screens/Default-Portrait~ipad.png
 1024x768(1x) ->  1024x768: screens/Default-Landscape~ipad.png
 768x1024(2x) -> 1536x2048: screens/Default-Portrait@2x~ipad.png
 1024x768(2x) -> 2048x1536: screens/Default-Landscape@2x~ipad.png

これで気軽にアイコンと起動画面を調整できるようになった。PictRuby/Tools/Icon以下をコピーすれば他の環境でも使えると思います。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2