[External] : Re: jpackage requests permission via a dialog
Alexander Matveev
alexander.matveev at oracle.com
Tue Mar 5 21:46:33 UTC 2024
Hi Alan,
jpackage does not use .DS_Store file directly. Script tells “Finder” application to arrange DMG layout and once script is finished “Finder” will create .DS_Store file to store layout.
If user wants to modify it, them generated DMG needs to be converted to writable, mounted, layout modified by hand or any other ways like script, unmount and make DMG read only.
DMG might have additional content specified by jpackage users, so I do not know how we could re-use .DS_Store in such cases, since we do not know what content DMG might have.
Thanks,
Alexander
From: Alan Snyder <javalists at cbfiddle.com>
Date: Tuesday, March 5, 2024 at 8:50 AM
To: Michael Hall <mik3hall at gmail.com>
Cc: Alexander Matveev <alexander.matveev at oracle.com>, core-libs-dev at openjdk.org <core-libs-dev at openjdk.org>
Subject: Re: [External] : Re: jpackage requests permission via a dialog
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<https://urldefense.com/v3/__https:/www.ej-technologies.com/resources/install4j/help/doc/concepts/dmgStyling.html__;!!ACWV5N9M2RV99hQ!JI59aSFm4DwVoosoosGu5U5p_6GD8_bhXqh9tplhX6GJ_6Z7GiQ9IV3JuHHOn_an62KkkoC22UPLytOMOANY58u4rV4$>]
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/b22ccb39/attachment-0001.htm>
More information about the core-libs-dev
mailing list