runtimes.sh 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. #!/bin/sh
  2. set -e
  3. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
  4. cd $SCRIPT_DIR
  5. ROOT=$SCRIPT_DIR/../..
  6. echo "Spine Runtimes path: $ROOT"
  7. echo "Copying assets to runtimes..."
  8. echo ""
  9. echo "spine-libgdx"
  10. rm "$ROOT/spine-libgdx/spine-libgdx-tests/assets/goblins/"*
  11. cp -f ../goblins/export/*.json "$ROOT/spine-libgdx/spine-libgdx-tests/assets/goblins/"
  12. cp -f ../goblins/export/*.skel "$ROOT/spine-libgdx/spine-libgdx-tests/assets/goblins/"
  13. cp -f ../goblins/export/*-pma.* "$ROOT/spine-libgdx/spine-libgdx-tests/assets/goblins/"
  14. rm "$ROOT/spine-libgdx/spine-libgdx-tests/assets/raptor/"*
  15. cp -f ../raptor/export/*.json "$ROOT/spine-libgdx/spine-libgdx-tests/assets/raptor/"
  16. cp -f ../raptor/export/*.skel "$ROOT/spine-libgdx/spine-libgdx-tests/assets/raptor/"
  17. cp -f ../raptor/export/*-pma.* "$ROOT/spine-libgdx/spine-libgdx-tests/assets/raptor/"
  18. rm "$ROOT/spine-libgdx/spine-libgdx-tests/assets/spineboy/"*
  19. cp -f ../spineboy/export/*.json "$ROOT/spine-libgdx/spine-libgdx-tests/assets/spineboy/"
  20. cp -r ../spineboy/export/*.skel "$ROOT/spine-libgdx/spine-libgdx-tests/assets/spineboy/"
  21. cp -r ../spineboy/export/*-pma.* "$ROOT/spine-libgdx/spine-libgdx-tests/assets/spineboy/"
  22. rm "$ROOT/spine-libgdx/spine-libgdx-tests/assets/coin/"*
  23. cp -f ../coin/export/*.json "$ROOT/spine-libgdx/spine-libgdx-tests/assets/coin/"
  24. cp -f ../coin/export/*.skel "$ROOT/spine-libgdx/spine-libgdx-tests/assets/coin/"
  25. cp -f ../coin/export/*-pma.* "$ROOT/spine-libgdx/spine-libgdx-tests/assets/coin/"
  26. rm -f "$ROOT/spine-libgdx/spine-libgdx-tests/assets/mix-and-match/"*
  27. cp -f ../mix-and-match/export/*.json "$ROOT/spine-libgdx/spine-libgdx-tests/assets/mix-and-match/"
  28. cp -f ../mix-and-match/export/*.skel "$ROOT/spine-libgdx/spine-libgdx-tests/assets/mix-and-match/"
  29. cp -f ../mix-and-match/export/*-pma.* "$ROOT/spine-libgdx/spine-libgdx-tests/assets/mix-and-match/"
  30. echo "spine-as3"
  31. rm "$ROOT/spine-as3/spine-as3-example/src/spineboy".*
  32. cp -f ../spineboy/export/spineboy-ess.json "$ROOT/spine-as3/spine-as3-example/src/"
  33. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-as3/spine-as3-example/src/"
  34. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-as3/spine-as3-example/src/"
  35. echo "spine-cocos2d-objc"
  36. rm "$ROOT/spine-cocos2d-objc/Resources/"*
  37. cp -f ../coin/export/coin-pro.json "$ROOT/spine-cocos2d-objc/Resources/"
  38. cp -f ../coin/export/coin.atlas "$ROOT/spine-cocos2d-objc/Resources/"
  39. cp -f ../coin/export/coin.png "$ROOT/spine-cocos2d-objc/Resources/"
  40. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-cocos2d-objc/Resources/"
  41. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-cocos2d-objc/Resources/"
  42. cp -f ../goblins/export/goblins.png "$ROOT/spine-cocos2d-objc/Resources/"
  43. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-cocos2d-objc/Resources/"
  44. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-cocos2d-objc/Resources/"
  45. cp -f ../raptor/export/raptor.png "$ROOT/spine-cocos2d-objc/Resources/"
  46. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-cocos2d-objc/Resources/"
  47. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-cocos2d-objc/Resources/"
  48. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-cocos2d-objc/Resources/"
  49. cp -f ../tank/export/tank-pro.json "$ROOT/spine-cocos2d-objc/Resources/"
  50. cp -f ../tank/export/tank.atlas "$ROOT/spine-cocos2d-objc/Resources/"
  51. cp -f ../tank/export/tank.png "$ROOT/spine-cocos2d-objc/Resources/"
  52. echo "spine-cocos2dx"
  53. rm "$ROOT/spine-cocos2dx/example/Resources/common/"*
  54. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-cocos2dx/example/Resources/common/"
  55. cp -f ../coin/export/coin.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  56. cp -f ../coin/export/coin.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  57. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-cocos2dx/example/Resources/common/"
  58. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  59. cp -f ../goblins/export/goblins.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  60. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-cocos2dx/example/Resources/common/"
  61. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  62. cp -f ../raptor/export/raptor.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  63. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-cocos2dx/example/Resources/common/"
  64. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  65. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  66. cp -f ../tank/export/tank-pro.skel "$ROOT/spine-cocos2dx/example/Resources/common/"
  67. cp -f ../tank/export/tank.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  68. cp -f ../tank/export/tank.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  69. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-cocos2dx/example/Resources/common/"
  70. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-cocos2dx/example/Resources/common/"
  71. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-cocos2dx/example/Resources/common/"
  72. rm "$ROOT/spine-cocos2dx/example-v4/Resources/common/"*
  73. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  74. cp -f ../coin/export/coin.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  75. cp -f ../coin/export/coin.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  76. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  77. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  78. cp -f ../goblins/export/goblins.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  79. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  80. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  81. cp -f ../raptor/export/raptor.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  82. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  83. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  84. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  85. cp -f ../tank/export/tank-pro.skel "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  86. cp -f ../tank/export/tank.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  87. cp -f ../tank/export/tank.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  88. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  89. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  90. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-cocos2dx/example-v4/Resources/common/"
  91. echo "spine-solar2d"
  92. rm "$ROOT/spine-solar2d/data/"*
  93. cp -f ../coin/export/coin-pro.json "$ROOT/spine-solar2d/data"
  94. cp -f ../coin/export/coin.atlas "$ROOT/spine-solar2d/data"
  95. cp -f ../coin/export/coin.png "$ROOT/spine-solar2d/data"
  96. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-solar2d/data"
  97. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-solar2d/data"
  98. cp -f ../goblins/export/goblins.png "$ROOT/spine-solar2d/data"
  99. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-solar2d/data"
  100. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-solar2d/data"
  101. cp -f ../raptor/export/raptor.png "$ROOT/spine-solar2d/data"
  102. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-solar2d/data"
  103. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-solar2d/data"
  104. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-solar2d/data"
  105. cp -f ../tank/export/tank-pro.json "$ROOT/spine-solar2d/data"
  106. cp -f ../tank/export/tank.atlas "$ROOT/spine-solar2d/data"
  107. cp -f ../tank/export/tank.png "$ROOT/spine-solar2d/data"
  108. cp -f ../vine/export/vine-pro.json "$ROOT/spine-solar2d/data"
  109. cp -f ../vine/export/vine.atlas "$ROOT/spine-solar2d/data"
  110. cp -f ../vine/export/vine.png "$ROOT/spine-solar2d/data"
  111. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-solar2d/data"
  112. cp -f ../stretchyman/export/stretchyman.atlas "$ROOT/spine-solar2d/data"
  113. cp -f ../stretchyman/export/stretchyman.png "$ROOT/spine-solar2d/data"
  114. cp -f ../owl/export/owl-pro.json "$ROOT/spine-solar2d/data"
  115. cp -f ../owl/export/owl.atlas "$ROOT/spine-solar2d/data"
  116. cp -f ../owl/export/owl.png "$ROOT/spine-solar2d/data"
  117. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-solar2d/data"
  118. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-solar2d/data"
  119. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-solar2d/data"
  120. echo "spine-love"
  121. rm "$ROOT/spine-love/data/"*
  122. cp -f ../coin/export/coin-pro.json "$ROOT/spine-love/data"
  123. cp -f ../coin/export/coin.atlas "$ROOT/spine-love/data"
  124. cp -f ../coin/export/coin.png "$ROOT/spine-love/data"
  125. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-love/data"
  126. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-love/data"
  127. cp -f ../goblins/export/goblins.png "$ROOT/spine-love/data"
  128. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-love/data"
  129. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-love/data"
  130. cp -f ../raptor/export/raptor.png "$ROOT/spine-love/data"
  131. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-love/data"
  132. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-love/data"
  133. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-love/data"
  134. cp -f ../tank/export/tank-pro.json "$ROOT/spine-love/data"
  135. cp -f ../tank/export/tank.atlas "$ROOT/spine-love/data"
  136. cp -f ../tank/export/tank.png "$ROOT/spine-love/data"
  137. cp -f ../vine/export/vine-pro.json "$ROOT/spine-love/data"
  138. cp -f ../vine/export/vine.atlas "$ROOT/spine-love/data"
  139. cp -f ../vine/export/vine.png "$ROOT/spine-love/data"
  140. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-love/data"
  141. cp -f ../stretchyman/export/stretchyman.atlas "$ROOT/spine-love/data"
  142. cp -f ../stretchyman/export/stretchyman.png "$ROOT/spine-love/data"
  143. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-love/data"
  144. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-love/data"
  145. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-love/data"
  146. echo "spine-sfml-c"
  147. rm "$ROOT/spine-sfml/c/data/"*
  148. cp -f ../coin/export/coin-pro.json "$ROOT/spine-sfml/c/data/"
  149. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-sfml/c/data/"
  150. cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-sfml/c/data/"
  151. cp -f ../coin/export/coin-pma.png "$ROOT/spine-sfml/c/data/"
  152. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-sfml/c/data/"
  153. cp -f ../goblins/export/goblins-pro.skel "$ROOT/spine-sfml/c/data/"
  154. cp -f ../goblins/export/goblins-pma.atlas "$ROOT/spine-sfml/c/data/"
  155. cp -f ../goblins/export/goblins-pma.png "$ROOT/spine-sfml/c/data/"
  156. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-sfml/c/data/"
  157. cp -f ../raptor/export/raptor-pro.skel "$ROOT/spine-sfml/c/data/"
  158. cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-sfml/c/data/"
  159. cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-sfml/c/data/"
  160. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-sfml/c/data/"
  161. cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-sfml/c/data/"
  162. cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-sfml/c/data/"
  163. cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-sfml/c/data/"
  164. cp -f ../tank/export/tank-pro.json "$ROOT/spine-sfml/c/data/"
  165. cp -f ../tank/export/tank-pro.skel "$ROOT/spine-sfml/c/data/"
  166. cp -f ../tank/export/tank-pma.atlas "$ROOT/spine-sfml/c/data/"
  167. cp -f ../tank/export/tank-pma.png "$ROOT/spine-sfml/c/data/"
  168. cp -f ../vine/export/vine-pro.json "$ROOT/spine-sfml/c/data/"
  169. cp -f ../vine/export/vine-pro.skel "$ROOT/spine-sfml/c/data/"
  170. cp -f ../vine/export/vine-pma.atlas "$ROOT/spine-sfml/c/data/"
  171. cp -f ../vine/export/vine-pma.png "$ROOT/spine-sfml/c/data/"
  172. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-sfml/c/data/"
  173. cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-sfml/c/data/"
  174. cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-sfml/c/data/"
  175. cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-sfml/c/data/"
  176. cp -f ../owl/export/owl-pro.json "$ROOT/spine-sfml/c/data/"
  177. cp -f ../owl/export/owl-pro.skel "$ROOT/spine-sfml/c/data/"
  178. cp -f ../owl/export/owl-pma.atlas "$ROOT/spine-sfml/c/data/"
  179. cp -f ../owl/export/owl-pma.png "$ROOT/spine-sfml/c/data/"
  180. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-sfml/c/data/"
  181. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-sfml/c/data/"
  182. cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-sfml/c/data/"
  183. cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-sfml/c/data/"
  184. echo "spine-sfml-cpp"
  185. rm "$ROOT/spine-sfml/cpp/data/"*
  186. cp -f ../coin/export/coin-pro.json "$ROOT/spine-sfml/cpp/data/"
  187. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-sfml/cpp/data/"
  188. cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  189. cp -f ../coin/export/coin-pma.png "$ROOT/spine-sfml/cpp/data/"
  190. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-sfml/cpp/data/"
  191. cp -f ../goblins/export/goblins-pro.skel "$ROOT/spine-sfml/cpp/data/"
  192. cp -f ../goblins/export/goblins-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  193. cp -f ../goblins/export/goblins-pma.png "$ROOT/spine-sfml/cpp/data/"
  194. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-sfml/cpp/data/"
  195. cp -f ../raptor/export/raptor-pro.skel "$ROOT/spine-sfml/cpp/data/"
  196. cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  197. cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-sfml/cpp/data/"
  198. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-sfml/cpp/data/"
  199. cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-sfml/cpp/data/"
  200. cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  201. cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-sfml/cpp/data/"
  202. cp -f ../tank/export/tank-pro.json "$ROOT/spine-sfml/cpp/data/"
  203. cp -f ../tank/export/tank-pro.skel "$ROOT/spine-sfml/cpp/data/"
  204. cp -f ../tank/export/tank-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  205. cp -f ../tank/export/tank-pma.png "$ROOT/spine-sfml/cpp/data/"
  206. cp -f ../vine/export/vine-pro.json "$ROOT/spine-sfml/cpp/data/"
  207. cp -f ../vine/export/vine-pro.skel "$ROOT/spine-sfml/cpp/data/"
  208. cp -f ../vine/export/vine-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  209. cp -f ../vine/export/vine-pma.png "$ROOT/spine-sfml/cpp/data/"
  210. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-sfml/cpp/data/"
  211. cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-sfml/cpp/data/"
  212. cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  213. cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-sfml/cpp/data/"
  214. cp -f ../owl/export/owl-pro.json "$ROOT/spine-sfml/cpp/data/"
  215. cp -f ../owl/export/owl-pro.skel "$ROOT/spine-sfml/cpp/data/"
  216. cp -f ../owl/export/owl-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  217. cp -f ../owl/export/owl-pma.png "$ROOT/spine-sfml/cpp/data/"
  218. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-sfml/cpp/data/"
  219. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-sfml/cpp/data/"
  220. cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-sfml/cpp/data/"
  221. cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-sfml/cpp/data/"
  222. echo "spine-starling"
  223. # Do not delete everything in src, especially goblins-mesh-starling.png/.xml
  224. cp -f ../coin/export/coin-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  225. cp -f ../coin/export/coin.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  226. cp -f ../coin/export/coin.png "$ROOT/spine-starling/spine-starling-example/src/"
  227. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  228. cp -f ../goblins/export/goblins.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  229. cp -f ../goblins/export/goblins.png "$ROOT/spine-starling/spine-starling-example/src/"
  230. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  231. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  232. cp -f ../raptor/export/raptor.png "$ROOT/spine-starling/spine-starling-example/src/"
  233. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  234. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  235. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-starling/spine-starling-example/src/"
  236. cp -f ../tank/export/tank-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  237. cp -f ../tank/export/tank.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  238. cp -f ../tank/export/tank.png "$ROOT/spine-starling/spine-starling-example/src/"
  239. cp -f ../vine/export/vine-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  240. cp -f ../vine/export/vine.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  241. cp -f ../vine/export/vine.png "$ROOT/spine-starling/spine-starling-example/src/"
  242. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  243. cp -f ../stretchyman/export/stretchyman.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  244. cp -f ../stretchyman/export/stretchyman.png "$ROOT/spine-starling/spine-starling-example/src/"
  245. cp -f ../owl/export/owl-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  246. cp -f ../owl/export/owl.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  247. cp -f ../owl/export/owl.png "$ROOT/spine-starling/spine-starling-example/src/"
  248. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-starling/spine-starling-example/src/"
  249. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-starling/spine-starling-example/src/"
  250. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-starling/spine-starling-example/src/"
  251. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-starling/spine-starling-example/src/"
  252. echo "spine-ts"
  253. rm "$ROOT/spine-ts/webgl/example/assets/"*
  254. cp -f ../coin/export/coin-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  255. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  256. cp -f ../coin/export/coin-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  257. cp -f ../coin/export/coin-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  258. cp -f ../goblins/export/goblins-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  259. cp -f ../goblins/export/goblins-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  260. cp -f ../goblins/export/goblins-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  261. cp -f ../goblins/export/goblins-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  262. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  263. cp -f ../raptor/export/raptor-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  264. cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  265. cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  266. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  267. cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  268. cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  269. cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  270. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-ts/webgl/example/assets/"
  271. cp -f ../tank/export/tank-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  272. cp -f ../tank/export/tank-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  273. cp -f ../tank/export/tank-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  274. cp -f ../tank/export/tank-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  275. cp -f ../vine/export/vine-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  276. cp -f ../vine/export/vine-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  277. cp -f ../vine/export/vine-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  278. cp -f ../vine/export/vine-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  279. cp -f ../owl/export/owl-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  280. cp -f ../owl/export/owl-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  281. cp -f ../owl/export/owl-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  282. cp -f ../owl/export/owl-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  283. cp -f ../stretchyman/export/stretchyman-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  284. cp -f ../stretchyman/export/stretchyman-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  285. cp -f ../stretchyman/export/stretchyman-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  286. cp -f ../stretchyman/export/stretchyman-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  287. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-ts/webgl/example/assets/"
  288. cp -f ../mix-and-match/export/mix-and-match-pro.skel "$ROOT/spine-ts/webgl/example/assets/"
  289. cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$ROOT/spine-ts/webgl/example/assets/"
  290. cp -f ../mix-and-match/export/mix-and-match-pma.png "$ROOT/spine-ts/webgl/example/assets/"
  291. rm "$ROOT/spine-ts/canvas/example/assets/"*
  292. cp -f ../spineboy/export/spineboy-ess.json "$ROOT/spine-ts/canvas/example/assets/"
  293. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-ts/canvas/example/assets/"
  294. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-ts/canvas/example/assets/"
  295. rm "$ROOT/spine-ts/threejs/example/assets/"*
  296. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/threejs/example/assets/"
  297. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-ts/threejs/example/assets/"
  298. cp -f ../raptor/export/raptor.png "$ROOT/spine-ts/threejs/example/assets/"
  299. rm "$ROOT/spine-ts/player/example/assets/"*
  300. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ts/player/example/assets/"
  301. cp -f ../raptor/export/raptor-pma.atlas "$ROOT/spine-ts/player/example/assets/"
  302. cp -f ../raptor/export/raptor-pma.png "$ROOT/spine-ts/player/example/assets/"
  303. cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-ts/player/example/assets/"
  304. cp -f ../spineboy/export/spineboy-pma.atlas "$ROOT/spine-ts/player/example/assets/"
  305. cp -f ../spineboy/export/spineboy-pma.png "$ROOT/spine-ts/player/example/assets/"
  306. echo "spine-xna"
  307. rm "$ROOT/spine-xna/example/data/"*
  308. cp -f ../coin/export/coin-pro.json "$ROOT/spine-xna/example/data/"
  309. cp -f ../coin/export/coin-pro.skel "$ROOT/spine-xna/example/data/"
  310. cp -f ../coin/export/coin.atlas "$ROOT/spine-xna/example/data/"
  311. cp -f ../coin/export/coin.png "$ROOT/spine-xna/example/data/"
  312. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-xna/example/data/"
  313. # Note: normalmap need to be created manually. Thus we use a separately prepared atlas and
  314. # diffuse map so that the maps always match. These atlas textures are copied to the target dir.
  315. cp -f ../raptor/manual-maps/raptor.atlas "$ROOT/spine-xna/example/data/"
  316. cp -f ../raptor/manual-maps/raptor.png "$ROOT/spine-xna/example/data/"
  317. cp -f ../raptor/manual-maps/raptor-normals.png "$ROOT/spine-xna/example/data/raptor_normals.png"
  318. cp -f ../spineboy/export/spineboy-pro.skel "$ROOT/spine-xna/example/data/"
  319. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-xna/example/data/"
  320. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-xna/example/data/"
  321. cp -f ../tank/export/tank-pro.json "$ROOT/spine-xna/example/data/"
  322. cp -f ../tank/export/tank.atlas "$ROOT/spine-xna/example/data/"
  323. cp -f ../tank/export/tank.png "$ROOT/spine-xna/example/data/"
  324. cp -f ../mix-and-match/export/mix-and-match-pro.json "$ROOT/spine-xna/example/data/"
  325. cp -f ../mix-and-match/export/mix-and-match.atlas "$ROOT/spine-xna/example/data/"
  326. cp -f ../mix-and-match/export/mix-and-match.png "$ROOT/spine-xna/example/data/"
  327. echo "spine-ue4"
  328. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.json"
  329. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.atlas"
  330. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.png"
  331. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.json"
  332. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.atlas"
  333. rm "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.png"
  334. cp -f ../raptor/export/raptor-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/raptor.json"
  335. cp -f ../raptor/export/raptor.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/"
  336. cp -f ../raptor/export/raptor.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/Raptor/"
  337. cp -f ../spineboy/export/spineboy-pro.json "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/spineboy.json"
  338. cp -f ../spineboy/export/spineboy.atlas "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/"
  339. cp -f ../spineboy/export/spineboy.png "$ROOT/spine-ue4/Content/GettingStarted/Assets/Spineboy/"
  340. echo "spine-unity"
  341. # Section of assets specific for the spine-unity runtime.
  342. UNITY_SOURCE_DIR=../spine-unity
  343. # Do not delete everything in unity dirs, especially not .meta files.
  344. # Note: We copy the files following the existing naming scheme (e.g. goblins.json instead of goblins-pro.json)
  345. # to the unity assets directories. This requires to change the png file reference line in the atlas file.
  346. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Dragon"
  347. cp -f ../dragon/export/dragon-ess.json "$UNITY_TARGET_DIR/dragon.json"
  348. cp -f ../dragon/export/dragon-pma.atlas "$UNITY_TARGET_DIR/dragon.atlas.txt"
  349. sed -i 's/dragon-pma.png/dragon.png/g' "$UNITY_TARGET_DIR/dragon.atlas.txt"
  350. sed -i 's/dragon-pma_2.png/dragon2.png/g' "$UNITY_TARGET_DIR/dragon.atlas.txt"
  351. cp -f ../dragon/export/dragon-pma.png "$UNITY_TARGET_DIR/dragon.png"
  352. cp -f ../dragon/export/dragon-pma_2.png "$UNITY_TARGET_DIR/dragon2.png"
  353. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Goblins"
  354. cp -f ../goblins/export/goblins-pro.json "$UNITY_TARGET_DIR/goblins.json"
  355. cp -f ../goblins/export/goblins-pma.atlas "$UNITY_TARGET_DIR/goblins.atlas.txt"
  356. sed -i 's/goblins-pma.png/goblins.png/g' "$UNITY_TARGET_DIR/goblins.atlas.txt"
  357. cp -f ../goblins/export/goblins-pma.png "$UNITY_TARGET_DIR/goblins.png"
  358. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Hero"
  359. cp -f ../hero/export/hero-pro.json "$UNITY_TARGET_DIR/"
  360. cp -f ../hero/export/hero-pma.atlas "$UNITY_TARGET_DIR/hero-pro.atlas.txt"
  361. sed -i 's/hero-pma.png/hero-pro.png/g' "$UNITY_TARGET_DIR/hero-pro.atlas.txt"
  362. cp -f ../hero/export/hero-pma.png "$UNITY_TARGET_DIR/hero-pro.png"
  363. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/raptor-pro-and-mask"
  364. cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/raptor-pro.json"
  365. cp -f ../raptor/export/raptor-pma.atlas "$UNITY_TARGET_DIR/raptor-pma.atlas.txt"
  366. cp -f ../raptor/export/raptor-pma.png "$UNITY_TARGET_DIR/raptor-pma.png"
  367. # URP packages
  368. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/RaptorURP"
  369. cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
  370. cp -f ../raptor/manual-maps/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
  371. cp -f ../raptor/manual-maps/raptor.png "$UNITY_TARGET_DIR/"
  372. cp -f ../raptor/manual-maps/raptor-rim-mask.png "$UNITY_TARGET_DIR/"
  373. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/RaptorURP"
  374. cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
  375. cp -f ../raptor/export/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
  376. cp -f ../raptor/export/raptor.png "$UNITY_TARGET_DIR/"
  377. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/RaptorLWRP"
  378. cp -f ../raptor/export/raptor-pro.json "$UNITY_TARGET_DIR/"
  379. cp -f ../raptor/export/raptor.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
  380. cp -f ../raptor/export/raptor.png "$UNITY_TARGET_DIR/"
  381. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-pro"
  382. cp -f ../spineboy/export/spineboy-pro.json "$UNITY_TARGET_DIR/spineboy-pro.json"
  383. cp -f ../spineboy/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt"
  384. sed -i 's/spineboy-pma.png/spineboy-pro.png/g' "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt"
  385. cp -f ../spineboy/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy-pro.png"
  386. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/mix-and-match"
  387. cp -f ../mix-and-match/export/mix-and-match-pro.json "$UNITY_TARGET_DIR/"
  388. cp -f ../mix-and-match/export/mix-and-match-pma.atlas "$UNITY_TARGET_DIR/mix-and-match-pma.atlas.txt"
  389. cp -f ../mix-and-match/export/mix-and-match-pma.png "$UNITY_TARGET_DIR/"
  390. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Stretchyman"
  391. cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
  392. # Note: normalmap and emissionmap need to be created manually. Thus we use a separately prepared
  393. # atlas and diffuse map here so that the maps always match. These atlas textures are copied to the target dir.
  394. cp -f ../stretchyman/manual-maps/stretchyman-pma.atlas "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.atlas.txt"
  395. sed -i 's/stretchyman-pma.png/stretchyman-diffuse-pma.png/g' "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.atlas.txt"
  396. cp -f ../stretchyman/manual-maps/stretchyman-pma.png "$UNITY_TARGET_DIR/stretchyman-diffuse-pma.png"
  397. cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
  398. cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
  399. # URP packages
  400. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/2D/Spine Skeletons/StretchymanURP"
  401. cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
  402. cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
  403. cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
  404. cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
  405. cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
  406. cp -f ../stretchyman/manual-maps/stretchyman-rim-mask.png "$UNITY_TARGET_DIR/"
  407. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Examples/3D/Spine Skeletons/StretchymanURP"
  408. cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
  409. cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
  410. cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
  411. cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
  412. cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
  413. UNITY_TARGET_DIR="$ROOT/spine-unity/Modules/com.esotericsoftware.spine.lwrp-shaders/Spine Skeletons/StretchymanLWRP"
  414. cp -f ../stretchyman/export/stretchyman-pro.json "$UNITY_TARGET_DIR/stretchyman.json"
  415. cp -f ../stretchyman/manual-maps/stretchyman.atlas "$UNITY_TARGET_DIR/stretchyman.atlas.txt"
  416. cp -f ../stretchyman/manual-maps/stretchyman.png "$UNITY_TARGET_DIR/"
  417. cp -f ../stretchyman/manual-maps/stretchyman-normals.png "$UNITY_TARGET_DIR/"
  418. cp -f ../stretchyman/manual-maps/stretchyman-emission.png "$UNITY_TARGET_DIR/"
  419. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Eyes"
  420. cp -f $UNITY_SOURCE_DIR/eyes/export/eyes.json "$UNITY_TARGET_DIR/eyes.json"
  421. cp -f $UNITY_SOURCE_DIR/eyes/export/eyes-pma.atlas "$UNITY_TARGET_DIR/eyes.atlas.txt"
  422. sed -i 's/eyes-pma.png/eyes.png/g' "$UNITY_TARGET_DIR/eyes.atlas.txt"
  423. cp -f $UNITY_SOURCE_DIR/eyes/export/eyes-pma.png "$UNITY_TARGET_DIR/eyes.png"
  424. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/FootSoldier"
  425. cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier.json "$UNITY_TARGET_DIR/FootSoldier.json"
  426. cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier-pma.atlas "$UNITY_TARGET_DIR/FS_White.atlas.txt"
  427. sed -i 's/footsoldier-pma.png/FS_White.png/g' "$UNITY_TARGET_DIR/FS_White.atlas.txt"
  428. cp -f $UNITY_SOURCE_DIR/footsoldier/export/footsoldier-pma.png "$UNITY_TARGET_DIR/FS_White.png"
  429. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Gauge"
  430. cp -f $UNITY_SOURCE_DIR/gauge/export/gauge.json "$UNITY_TARGET_DIR/Gauge.json"
  431. cp -f $UNITY_SOURCE_DIR/gauge/export/gauge-pma.atlas "$UNITY_TARGET_DIR/Gauge.atlas.txt"
  432. sed -i 's/gauge-pma.png/Gauge.png/g' "$UNITY_TARGET_DIR/Gauge.atlas.txt"
  433. cp -f $UNITY_SOURCE_DIR/gauge/export/gauge-pma.png "$UNITY_TARGET_DIR/Gauge.png"
  434. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Raptor"
  435. cp -f $UNITY_SOURCE_DIR/raptor/export/raptor.json "$UNITY_TARGET_DIR/raptor.json"
  436. cp -f $UNITY_SOURCE_DIR/raptor/export/raptor-pma.atlas "$UNITY_TARGET_DIR/raptor.atlas.txt"
  437. sed -i 's/raptor-pma.png/raptor.png/g' "$UNITY_TARGET_DIR/raptor.atlas.txt"
  438. cp -f $UNITY_SOURCE_DIR/raptor/export/raptor-pma.png "$UNITY_TARGET_DIR/raptor.png"
  439. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Raggedy Spineboy"
  440. cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy.json "$UNITY_TARGET_DIR/raggedy spineboy.json"
  441. cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy-pma.atlas "$UNITY_TARGET_DIR/Raggedy Spineboy.atlas.txt"
  442. sed -i 's/raggedyspineboy-pma.png/Raggedy Spineboy.png/g' "$UNITY_TARGET_DIR/Raggedy Spineboy.atlas.txt"
  443. cp -f $UNITY_SOURCE_DIR/raggedyspineboy/export/raggedyspineboy-pma.png "$UNITY_TARGET_DIR/Raggedy Spineboy.png"
  444. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-pro"
  445. cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pro.json "$UNITY_TARGET_DIR/spineboy-pro.json"
  446. cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt"
  447. sed -i 's/spineboy-pma.png/spineboy-pro.png/g' "$UNITY_TARGET_DIR/spineboy-pro.atlas.txt"
  448. cp -f $UNITY_SOURCE_DIR/spineboy-pro/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy-pro.png"
  449. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/spineboy-unity"
  450. cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-unity.json "$UNITY_TARGET_DIR/spineboy-unity.json"
  451. cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-pma.atlas "$UNITY_TARGET_DIR/spineboy.atlas.txt"
  452. sed -i 's/spineboy-pma.png/spineboy.png/g' "$UNITY_TARGET_DIR/spineboy.atlas.txt"
  453. cp -f $UNITY_SOURCE_DIR/spineboy-unity/export/spineboy-pma.png "$UNITY_TARGET_DIR/spineboy.png"
  454. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Spineunitygirl"
  455. cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi.json "$UNITY_TARGET_DIR/Doi.json"
  456. cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi-pma.atlas "$UNITY_TARGET_DIR/Doi.atlas.txt"
  457. sed -i 's/doi-pma.png/Doi.png/g' "$UNITY_TARGET_DIR/Doi.atlas.txt"
  458. cp -f $UNITY_SOURCE_DIR/spineunitygirl/export/doi-pma.png "$UNITY_TARGET_DIR/Doi.png"
  459. UNITY_TARGET_DIR="$ROOT/spine-unity/Assets/Spine Examples/Spine Skeletons/Whirlyblendmodes"
  460. cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes.json "$UNITY_TARGET_DIR/whirlyblendmodes.json"
  461. cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.atlas "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt"
  462. sed -i 's/whirlyblendmodes-pma.png/whirlyblendmodes.png/g' "$UNITY_TARGET_DIR/whirlyblendmodes.atlas.txt"
  463. cp -f $UNITY_SOURCE_DIR/whirlyblendmodes/export/whirlyblendmodes-pma.png "$UNITY_TARGET_DIR/whirlyblendmodes.png"
  464. echo "--"
  465. echo "Note regarding spine-xna and spine-unity:"
  466. echo "Some textures (normalmap, emission, rim-mask) need manual update."
  467. echo "Please update the following maps when an atlas update is needed:"
  468. echo "[xna and unity] 'raptor/manual-maps' to match png in 'raptor/export/'"
  469. echo "[unity only] 'stretchyman/manual-maps' to match png in 'stretchyman/export/'"
  470. echo "If not updated, the old consistent file-set in the directory is used."
  471. echo "--"