RFR: JDK-8230654: jpackage package-type dmg on macOS

Alexander Matveev alexander.matveev at oracle.com
Wed Sep 18 23:08:53 UTC 2019


Hi Michael,

If you specified --temp to jpackage it will contain config folder with 
background image and script we running to arrange icons in DMG, so you 
can convert created DMG to be writable, re-run script and convert it 
back to read-only.

Currently no plans to add CLI to provide background image for DMG, but 
it is something we can discuss.
We will need offsets for launcher icon and application symbolic link 
folder to place it correctly on top of background image.

Thanks,
Alexander

On 9/18/2019 3:02 PM, Michael Paus wrote:
> Hi,
> that explains it. I just wanted to make sure that you do not see any 
> scrollbars in the normal case.
> Will it be possible to provide your own image to be used by the 
> packager? Some people like
> to do some branding here.
> Michael
>
> Am 18.09.19 um 23:14 schrieb Alexander Matveev:
>> Hi Michael,
>>
>> I did screenshot with show hidden files enabled in Finder (Shift + 
>> Command + .). We have hidden files with background image, icon in DMG 
>> moved away, so if show hidden files enabled you will see scrollbars 
>> and can scroll to hidden files, if it is disabled then no scrollbars 
>> are shown.
>>
>> Thanks,
>> Alexander
>>
>> On 9/17/2019 11:52 PM, Michael Paus wrote:
>>> Hi,
>>>
>>> why are there scrollbars in the image on JBS? When you normally
>>>
>>> open a DMG you do not get scrollbars.
>>>
>>> Michael
>>>
>>>
>>>> Message: 6
>>>> Date: Tue, 17 Sep 2019 19:42:01 -0700
>>>> From: Alexander Matveev <alexander.matveev at oracle.com>
>>>> To: core-libs-dev <core-libs-dev at openjdk.java.net>
>>>> Subject: RFR: JDK-8230654: jpackage package-type dmg on macOS
>>>> Message-ID: <94fa6522-c5ca-c305-b257-71388e97bb13 at oracle.com>
>>>> Content-Type: text/plain; charset=utf-8; format=flowed
>>>>
>>>> Please review the jpackage fix for bug [1] at [2].
>>>>
>>>> This is a fix for the JDK-8200758-branch branch of the open sandbox
>>>> repository (jpackage).
>>>>
>>>> - Added link to "/Application" folder to DMG for drag and drop app to
>>>> this folder.
>>>> - Added background image with arrow pointing from App icon to
>>>> Application folder.
>>>> - If adding link and image to DMG fails it will not be considered
>>>> critical error. In headless environment it might not work correctly.
>>>> - See JBS issue for screenshot on how DMG will looks like with this 
>>>> fix.
>>>>
>>>> [1] https://bugs.openjdk.java.net/browse/JDK-8230654
>>>>
>>>> [2] http://cr.openjdk.java.net/~almatvee/8230654/webrev.01/
>>>>
>>>> Thanks,
>>>> Alexander
>>>
>>
>



More information about the core-libs-dev mailing list