Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1.  
  2. cp 1024x1024.png AppIcon-29.png
  3. sips -Z 29 AppIcon-29.png
  4.  
  5. cp 1024x1024.png AppIcon-29@2x.png
  6. sips -Z 58 AppIcon-29@2x.png
  7.  
  8. cp 1024x1024.png AppIcon-29@3x.png
  9. sips -Z 87 AppIcon-29@3x.png
  10.  
  11. cp 1024x1024.png AppIcon-40.png
  12. sips -Z 40 AppIcon-40.png
  13.  
  14. cp 1024x1024.png AppIcon-40@2x.png
  15. sips -Z 80 AppIcon-40@2x.png
  16.  
  17. cp 1024x1024.png AppIcon-40@3x.png
  18. sips -Z 120 AppIcon-40@3x.png
  19.  
  20. cp 1024x1024.png AppIcon-60@3x.png
  21. sips -Z 180 AppIcon-60@3x.png
  22.  
  23. cp 1024x1024.png AppIcon-76.png
  24. sips -Z 76 AppIcon-76.png
  25.  
  26. cp 1024x1024.png AppIcon-76@2x.png
  27. sips -Z 152 AppIcon-76@2x.png
  28.  
  29. cp 1024x1024.png AppIcon-83.5@2x.png
  30. sips -Z 167 AppIcon-83.5@2x.png
  31.  
  32. #rm 1024x1024.png
  33.  
  34. mkdir AppIcon.appiconset
  35.  
  36. mv AppIcon-29.png AppIcon.appiconset/AppIcon-29.png
  37. mv AppIcon-29@2x.png AppIcon.appiconset/AppIcon-29@2x.png
  38. mv AppIcon-29@3x.png AppIcon.appiconset/AppIcon-29@3x.png
  39. mv AppIcon-40.png AppIcon.appiconset/AppIcon-40.png
  40. mv AppIcon-40@2x.png AppIcon.appiconset/AppIcon-40@2x.png
  41. mv AppIcon-40@3x.png AppIcon.appiconset/AppIcon-40@3x.png
  42. mv AppIcon-60@3x.png AppIcon.appiconset/AppIcon-60@3x.png
  43. mv AppIcon-76.png AppIcon.appiconset/AppIcon-76.png
  44. mv AppIcon-76@2x.png AppIcon.appiconset/AppIcon-76@2x.png
  45. mv AppIcon-83.5@2x.png AppIcon.appiconset/AppIcon-83.5@2x.png
  46.  
  47. echo '{
  48. "images" : [
  49. {
  50. "size" : "29x29",
  51. "idiom" : "iphone",
  52. "filename" : "AppIcon-29@2x.png",
  53. "scale" : "2x"
  54. },
  55. {
  56. "size" : "29x29",
  57. "idiom" : "iphone",
  58. "filename" : "AppIcon-29@3x.png",
  59. "scale" : "3x"
  60. },
  61. {
  62. "size" : "40x40",
  63. "idiom" : "iphone",
  64. "filename" : "AppIcon-40@2x.png",
  65. "scale" : "2x"
  66. },
  67. {
  68. "size" : "40x40",
  69. "idiom" : "iphone",
  70. "filename" : "AppIcon-40@3x.png",
  71. "scale" : "3x"
  72. },
  73. {
  74. "idiom" : "iphone",
  75. "size" : "60x60",
  76. "filename" : "AppIcon-40@3x.png",
  77. "scale" : "2x"
  78. },
  79. {
  80. "size" : "60x60",
  81. "idiom" : "iphone",
  82. "filename" : "AppIcon-60@3x.png",
  83. "scale" : "3x"
  84. },
  85. {
  86. "size" : "29x29",
  87. "idiom" : "ipad",
  88. "filename" : "AppIcon-29.png",
  89. "scale" : "1x"
  90. },
  91. {
  92. "idiom" : "ipad",
  93. "size" : "29x29",
  94. "filename" : "AppIcon-29@2x.png",
  95. "scale" : "2x"
  96. },
  97. {
  98. "size" : "40x40",
  99. "idiom" : "ipad",
  100. "filename" : "AppIcon-40.png",
  101. "scale" : "1x"
  102. },
  103. {
  104. "idiom" : "ipad",
  105. "size" : "40x40",
  106. "filename" : "AppIcon-40@2x.png",
  107. "scale" : "2x"
  108. },
  109. {
  110. "size" : "76x76",
  111. "idiom" : "ipad",
  112. "filename" : "AppIcon-76.png",
  113. "scale" : "1x"
  114. },
  115. {
  116. "size" : "76x76",
  117. "idiom" : "ipad",
  118. "filename" : "AppIcon-76@2x.png",
  119. "scale" : "2x"
  120. },
  121. {
  122. "size" : "83.5x83.5",
  123. "idiom" : "ipad",
  124. "filename" : "AppIcon-83.5@2x.png",
  125. "scale" : "2x"
  126. }
  127. ],
  128. "info" : {
  129. "version" : 1,
  130. "author" : "xcode"
  131. }
  132. }' >Contents.json
  133.  
  134. mv Contents.json AppIcon.appiconset/Contents.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement