from what i can ascertain, this publishing code is very poorly thought out -- i can't follow the logic of what
it's trying to do. and, in some cases, it seems to be trying to copy/convert a file where the src and destination
filenames are identical. Instead of fixing the logic to avoid/handle this situation, they left it in and made it
a fatal publishing error ??? also, the publishing code is very drastic, wiping out entire directory trees without
even checkng to see whether it's a potentially dangerous thing to do or not -- most programmers would wisely
err on the side of caution, overwriting files and directories only as needed. and with publishing, you typically want
it to be idempotent -- the code will actually add in resources from subdirectories for futher processing -- which
means that if you run it multiple times, you'll tend to get a postiive feedback loop, in terms of the resulting files
generated -- also logically it's incorrect -- you're actually combining part of the result set into the input data.
also, took a look at the font png files as they were "converted" into HD, SD, etc. formats -- but all the font png
files had the same file size, which strongly suggests that no real resolution conversion took place and we now
multiple copies of the same underlying font png file, which doesn't buy you anything except a significantly increased
resulting application package.