Open m-kovac opened 1 year ago
We finally understood what the issue is.
TLDR: Icon size and position must be chosen so there is no room left around the icon for any of the hidden icons.
Define size and position of the application only in the contents
section. Alternatively include link to the /Applications
folder.
Remove references to any of the hidden files.
Based on the DMG window size you must make application icon quite large.
Finder will position visible hidden files automatically on the grid around the application icon. Your goal is to make it large enough and the space between window and icon must be less than icon-size * 2
- this will make sure visible hidden files will not be placed to any of the visible area.
When the application icon is small enough, Finder will position hidden files around it and in the visible area of the window.
As there may be background graphic with instruction for installing the app those hidden files may obscure it.
Making the icon large enough will move hidden icons out of visible area.
The window size is 480
, application is positioned at 240x240
to be in the center and its size is 172
.
com.apple.finder "AppleShowAllFiles" = false
com.apple.finder "AppleShowAllFiles" = true
Hidden files will cause the scrollbar to apear but it won't affect the design of the window.
appdmg.json
config{
"title": "Bunny app",
"icon-size": 172,
"contents": [
{ "x": 240, "y": 240, "type": "file", "path": "dist/BunnyApp.app" }
],
"window": {
"size": { "width": 480, "height": 480 }
}
}
same
Our team is experiencing weird behaviour with only application icon shown in visible area. When the hidden icons are moved to the right out of the visible area following happens:
appdmg.json
com.apple.finder "AppleShowAllFiles"
set to true or simply hit theCMD+Shift+.
then the position of icon is shifted.We thought that this is issue with the appearing scrollbar, but the shift is too big, scrollbar is only few dozens pixels wide and shift is hundred or even more(did not measure exactly). We also tried to move icons down under the visible area. The icon moves counterintuitively to the right closer to the scrollbar. Is there something we are doing wrong in
appdmg.json
file?DMG when
com.apple.finder "AppleShowAllFiles"
istrue
and and hidden icons are under the visible areaHere is the content of the
appdmg.json
fileDMG when
com.apple.finder "AppleShowAllFiles"
istrue
and hidden icons are right to visible areaHere is the content of the
appdmg.json
fileDMG when
com.apple.finder "AppleShowAllFiles"
isfalse