Hi all trying to get an app under the 20mb download limit. Been busting our balls and finally got it down 10.4mb compressed sent it to apple and there DRM bumped it to 20.4mb .
anyways we’ve realy can’t remove more without starting to gut parts of the game it self.
So i’ve been reading about apple DRM and i have theory’s on how to get around it but i wanted to see if anyone had tried or could foresee a problem before i try and implement it as its a big messy job.
basically as i understand it the increase space comes from the executable been encrypted which then ruins the compression. Given unity produces quite large exe this causes big increases in file size when drm is added.
however other files in the package are not encrypted so can be compressed normally.
my plan is to try and write a small boot loader which then kicks off the main exe, which i can try and disguise within the app as some other type of data file. because only the exe is encrypted this means that only the small boot loader will get encrypted and the actual exe will not allowing it to benefit from increased compression. if it works then the size of the app should only increase by 100-200kb when apple add there DRM rather than doubling as it does now
obviously its a pretty big hack but if it works it would be something i’m sure everyone would benefit from.
my main worry is what i can actually do the unity exe in the app file without breaking it as i don’t know the underlying structure that the unity engine creates or have the ability to make changes to it. so if any of the unity team knows if this is fesable then that would be great to hear about.