App bundle size weirdness

ch's icon

Can't understand how come the size is bigger when overwriting a bundle when building an app... (I'm running Max 5.0.5 with mac OSX 10.5.6)
Could someone confirm what I got ?

just create a stupid patch as this one :

Max Patch
Copy patch and select New From Clipboard in Max.

Go to "build collective/application", and save it anywhere you want as "Untitled1.app" for example. Take a look at its size, it should be around 24.4MB (what I got).
Then, go back to max, and build again the same patch at the same place, with the same name, answering yes when you're asked to replace the file. Take a look at the size.. It's now 38.5MB !

Can someone reproduces?

Ch.

ch's icon

First time I build, I got only one file in Untitled1.app/Contents/MacOS/ , that is : "Untitled1" (size : 13.9MB).

Second time I build, I got 2 files :
"Untitled1" (size : 13.9MB)
and
"MaxMSP Runtime" (size : 13.9MB)

So it seems there's a duplication of the runtime when overwriting the bundle...

Has that bug already been reported?

ch's icon

I just forgot to say that in order to reproduce, you have to close the "build script window" and re-open it from the menu between the two successive builds.

jvkr's icon

> Has that bug already been reported?

When I noticed this for the first time, I made it standard practice to delete manually the older version of the app I built. Not sure if this can be called a bug. Why expect that building an app over an old one would be successful?

_
johan

ch's icon

> Why expect that building an app over an old one would be successful?

Well, I generally expect that replacing a file replaces the file :)
However there has been a change about that between max 4 and 5 which is really usefull :
If you got some files in /contents/MacOS/ (such as pics or whatever you want), there are not deleted when building over, so you don't have copy them each time you re-build.
I really enjoy that behaviour, but I really dislike getting 14.9MB more for no reason. :)

So that's maybe cannot be called a "bug", but that's definitely annoying, and I think that it should be corrected if possible.