<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Michael,<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 31, 2022, at 2:40 PM, Michael Hall <<a href="mailto:mik3hall@gmail.com" class="">mik3hall@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><br class="">
<br class="">
<blockquote type="cite" class="">On Oct 31, 2022, at 4:17 PM, Alexander Matveev <<a href="mailto:alexander.matveev@oracle.com" class="">alexander.matveev@oracle.com</a>> wrote:<br class="">
<br class="">
Hi Michael,<br class="">
</blockquote>
<br class="">
Hello Alexander,<br class="">
<br class="">
<blockquote type="cite" class=""><br class="">
If I understood correctly you asking for several things:<br class="">
<br class="">
1) Change “/Applications” to “Applications”. I agree and we should fix it if possible. Did you file a bug for it? If not I can file.<br class="">
</blockquote>
<br class="">
I thought I did but haven’t received a number yet.<br class="">
</div>
</div>
</blockquote>
I did not able to find a bug you filed, so filed a new one:</div>
<div><a href="https://bugs.openjdk.org/browse/JDK-8296154" class="">https://bugs.openjdk.org/browse/JDK-8296154</a></div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
<blockquote type="cite" class=""><br class="">
2) Resize DMG window to show additional content which was added via --mac-dmg-content, so user does not have to scroll or manually resize window? I think we can investigate this, but I think we still need to limit by how many additional files we want to display
in case if user adds for example 100 files (very unlikely). Do you want to file enhancement for this? Or I can do it.<br class="">
</blockquote>
<br class="">
Not only resize the window but also the icons. It gives you a better appearance than the current. I’m not sure you want to police the number of files, that would be up the user. Usually I don’t think anyone is going to include anywhere near that. I saw a few
dmg’s on my machine that had two or three extra files.<br class="">
</div>
</div>
</blockquote>
<div>I filed <a href="https://bugs.openjdk.org/browse/JDK-8296156" class="">https://bugs.openjdk.org/browse/JDK-8296156</a> for this.</div>
<div><br class="">
</div>
<div>Thanks,</div>
<div>Alexander</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
<blockquote type="cite" class=""><br class="">
3) From your email "SceneBuilder OS/X DMG’s” do you mean provide ability to localize “Applications” folder name? I think we can do this, but user will need to produce separate localized DMG for each language.<br class="">
</blockquote>
<br class="">
I don’t know that I had any responses indicating anyone is doing this or wants it. I wasn’t sure if you already were doing any localizing. If not, I don’t think its a current concern.<br class="">
<br class="">
I already implemented changes for this. I signed the OCA so thought I might attempt the update. No clue right now what that really involves. So with the OCA signed you could probably just go ahead with my changes if you want?<br class="">
<br class="">
I posted the change to MacDmgBundler in my prior. My changed DMGsetup.scpt is…<br class="">
<br class="">
tell application "Finder"<br class="">
set theDisk to a reference to (disks whose URL = "DEPLOY_VOLUME_URL")<br class="">
open theDisk<br class="">
<br class="">
set theWindow to a reference to (container window of disks whose URL = "DEPLOY_VOLUME_URL")<br class="">
<br class="">
set current view of theWindow to icon view<br class="">
set toolbar visible of theWindow to false<br class="">
set statusbar visible of theWindow to false<br class="">
<br class="">
-- size of window should fit the size of background<br class="">
set the bounds of theWindow to {400, 100, 920, 480}<br class="">
<br class="">
set theViewOptions to a reference to the icon view options of theWindow<br class="">
set arrangement of theViewOptions to not arranged<br class="">
set icon size of theViewOptions to "DEPLOY_ICON_SIZE"<br class="">
set background picture of theViewOptions to POSIX file "DEPLOY_BG_FILE"<br class="">
<br class="">
-- Create alias for install location<br class="">
make new alias file at POSIX file "DEPLOY_VOLUME_PATH" to POSIX file "DEPLOY_INSTALL_LOCATION" with properties {name:"Applications"}<br class="">
<br class="">
set allTheFiles to the name of every item of theWindow<br class="">
set xpos to 120<br class="">
repeat with theFile in allTheFiles<br class="">
set theFilePath to POSIX path of theFile<br class="">
set appFilePath to POSIX path of "/DEPLOY_TARGET"<br class="">
if theFilePath is "DEPLOY_INSTALL_LOCATION" then<br class="">
-- Position install location<br class="">
set position of item theFile of theWindow to {390, 130}<br class="">
else if theFilePath ends with appFilePath then<br class="">
-- Position application or runtime<br class="">
set position of item theFile of theWindow to {120, 130}<br class="">
else<br class="">
-- Position all other items in a second row.<br class="">
set position of item theFile of theWindow to {xpos, 290}<br class="">
set xpos to xpos + 95<br class="">
end if<br class="">
end repeat<br class="">
<br class="">
<br class="">
update theDisk without registering applications<br class="">
delay 5<br class="">
close (get window of theDisk)<br class="">
end tell<br class="">
<br class="">
If you want to use that. <br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>