On Wed, May 23, 2012 at 06:20:00AM +1200, Ralph Versteegen wrote: > On 22 May 2012 08:51, James Paige <[email protected]> wrote: > > On Mon, May 21, 2012 at 01:09:40PM -0700, [email protected] > > wrote: > >> james > >> 2012-05-21 13:09:40 -0700 (Mon, 21 May 2012) > >> 315 > >> Add "Export Mac OS X App Bundle" to the distribute game menu > >> This produces a working app, but it is preceded by a warning message > >> because of bugs 946 and 933 > >> > >> The app is compressed as a .tar.gz because .zip can't have files with the > >> executable bit set, > >> and generating cross-platform .dmg archives is too much work. > > > > I actually marked *all* the files executable, because that works okay, > > and was less trouble than doing things right. > > > > I think if I really wanted to do things correctly, I would > > * Re-implement a tool for writing tar format > > * Write code to detect the headers of Linux and Mac executable files, > > and use it for setting the permissions while writing into the tar file. > > > > But the methods I am using now are "good enough" so I am not going to > > worry about that right now. > > > > --- > > James > > The minimal OSX game player shouldn't be distributed as a zip in the > first place. In addition to the executable flags, that breaks all the > symlinks inside the app bundle. That's why the download is so big. > Distributing it as a tar.gz would fix both problems.
Oops! You are right! I forgot about that part. I'll fix it as soon as I get a chance. It still won't fix the permission problem on windows, but that is no big deal. > It's too bad that creating .dmg files is such a nuisance. After > wasting way too much time doing yet another search (useful clues > below) it looks like it's possible one way or another, but it would > probably be amazingly difficult to find/implement a working solution, > piecing together HFS, DMG, and compression, all while being portable. > Definitely agree with "too much work". > > http://www.mars.org/home/rob/proj/hfs/ -- hfsutils, also ported to > Windows, but from the last century > mkisofs -- uses hfsutils > libhfs and libhfsp -- almost nothing on web about these I think the isofs workaround is probably the easiest. I remember reading somewhere that you could just rename a .iso to a .dmg and a Mac would do the right thing. I'll test that theory later. Of course, iso files can't be compressed, so it still might not be worth it. --- James _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
