[External] : Re: jpackage requests permission via a dialog
Alan Snyder
javalists at cbfiddle.com
Tue Mar 5 16:50:34 UTC 2024
I’m wondering whether some developers might prefer to arrange the DMG layout by hand.
That would require jpackage to use a .DS_Store file provided by the developer and not running the script.
The issue is whether a .DS_Store file created using a previous DMG would work in a new DMG.
The documentation for install4j suggests that there is a way.
[https://www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html]
> On Mar 5, 2024, at 12:28 AM, Michael Hall <mik3hall at gmail.com> wrote:
>
> Hello Alexander,
>
> I had forgotten or didn’t know that. I didn’t see it mentioned anywhere in this list thread previously. But there is generally no reason to delete this file. Unless you don’t want it included in a zip or a GitHub project. The icon placement for multiple files with jpackage —mac-dmg-content is determined by the AppleScript. You might remember I had a related bug report. I provided a workaround with slight changes to the code invoking the AppleScript and the AppleScript. You came up with your own fix. I was impressed you did it by just changing the AppleScript but I slightly preferred the placement of my change. Again, if I remember right.
>
> Mike
>
>> On Mar 4, 2024, at 9:57 PM, Alexander Matveev <alexander.matveev at oracle.com> wrote:
>>
>> Hi Michael,
>>
>> .DS_Store file contains information about icon position and other visual information on how to display folder. Once osascript configures DMG, Finder will store these setting in .DS_Store file. If it gets deleted from DMG, DMG will look like osascript was never run. So, Alan is right with “the configuration of the DMG appearance actually means configuring the .DS_Store file in the DMG”.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20240305/ce70f864/attachment.htm>
More information about the core-libs-dev
mailing list