<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=""><br class=""><div><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=""><meta charset="UTF-8" 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></body></html>