hg: macosx-port/macosx-port/jdk: Creating .jre sub-bundle inside .jdk bundle. First step towards embedding a .jre inside of self-launching .app bundles.

Mike Swingler swingler at apple.com
Wed Sep 14 23:34:44 PDT 2011


On Sep 14, 2011, at 11:21 PM, Henri Gomez wrote:

>> Actually, Henri, have you considered not using an installer package at all?
> 
> Not yet.
> 
>> I'm making a minor change to the makefile to create a symlink to /Library/Java/JavaVirtualMachines to enable Oracle to create a simple .dmg that uses drag-installing.
> 
> Drag installing into /Applications or  /Library/Java/JavaVirtualMachines ?

/Library/Java/JavaVirtualMachines

>> If you just wrap the entire contents of build/macosx-universal/j2sdk-bundle/ into a disk image, you'll have the top-level of a DMG (maybe there should be a nice background image, and the icons should be positioned).
> 
> I'm not too familiar with DMG creation so I should dig a bit on how to
> do this and change the actual behaviour, ie PKG inside a DMG.
> Advices - guidelines are more than welcome.

"hdiuitl create -srcfolder" should do the trick nicely. Checkout the man page for "hidutil" sometime...between it and "diskutil", they are the crazy swiss-army knives of anything filesystem related.

>> If you want multiple .jdk's to be installed side-by-side, rename "1.7.0.jdk" to "1.7.0_2011-09-14_03-00.jdk" or some other date/time encoding.
> 
> It would be nice for the future, ie like Java 1.6.0-25, 1.6.0-26, 1.6.0-27

Exactly. It also helps people who file bugs give us an exact snapshot in time of what they were using.

>> Just a thought,
> 
> So the current behaviour of symlink will stay like it's now ?

That's the plan, since we now have a .jre bundle that will be sub-loaded by bundled apps as well as the Java plug-in.

Cheers,
Mike Swingler
Java Engineering
Apple Inc.



More information about the macosx-port-dev mailing list