<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,
<div class=""><br class="">
</div>
<div class="">If I understood correctly you asking for several things:</div>
<div class=""><br class="">
</div>
<div 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.</div>
<div class=""><br class="">
</div>
<div 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.</div>
<div class=""><br class="">
</div>
<div 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.</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Alexander<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 30, 2022, at 2:42 PM, Michael Hall <<a href="mailto:mik3hall@gmail.com" class="">mik3hall@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 26, 2022, at 7:55 PM, Michael Hall <<a href="mailto:mik3hall@gmail.com" class="">mik3hall@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
I was looking to see what any other dmg’s I have do to handle this. Not many do. But those usually seem to use a smaller background image and icons. </div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
I may look at that to see if I can manage something like that.</div>
</div>
</blockquote>
</div>
<br class="">
<div class="">I made some changes that I think might address this. I tried to make the changes as trivial as possible.</div>
<div class=""><br class="">
</div>
<div class="">The only change to java is in MacDmgBundler.java, the prepareDMGSetupScript method. I added…</div>
<div class=""><br class="">
</div>
<div class=""> List <String> dmgContent = DMG_CONTENT.fetchFrom(params);<br class="">
if (dmgContent.size() > 0) {<br class="">
<span class="Apple-tab-span" style="white-space:pre"> </span>data.put("DEPLOY_ICON_SIZE", "64");<br class="">
}<br class="">
else {<br class="">
<span class="Apple-tab-span" style="white-space:pre"> </span>data.put("DEPLOY_ICON_SIZE", "128"); <br class="">
}</div>
<div class=""><br class="">
</div>
<div class="">I tried counting files in volumePath first but got a FileNotFoundException. Possibly actually a privilege access error?</div>
<div class=""><br class="">
</div>
<div class="">I obviously added DEPLOY_ICON_SIZE to the AppleScript and changed some spacing and sizing. I wanted to be able to comfortably show up to four additional files without scrolling.</div>
<div class=""><br class="">
</div>
<div class="">I also put in something for /Applications. I simply hard coded it to “Applications”. This seemed the most straight forward trivial way to do this. Unless someone indicates where it is or might be something other than Applications.</div>
<div class=""><br class="">
</div>
<div class="">I put screenshots of the before and after DMG windows at <a href="http://mikehall.pairserver.com/DMG_windows.dmg" class="">
http://mikehall.pairserver.com/DMG_windows.dmg</a></div>
<div class="">The only after appearance drawback is extra white space at the bottom of the application only window. This could be fairly easy to correct but isn’t really that bad looking.</div>
<div class=""><br class="">
</div>
<div class="">I appreciate the jpackage people implementing this feature and would appreciate it if they consider this, essentially, cosmetic change.</div>
<div class=""><br class="">
</div>
<div class="">Thanks.</div>
<div class=""><br class="">
</div>
<div class="">I mentioned this on the javafx list indicating I had discovered you could use a custom background image for the windows. I noticed in the verbose output today that jpackage indicates it currently supports this feature with a correctly named file
in the resource directory. So doing anything external would be unncecessary.</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>