Custom DMG icon is gone after uploading and downloading
zachgibson opened this issue · comments
I got the same issue.
Checked hashes with shasum -a 256
and size with stat -f%z
. Both are the same. But Finder
reports different file sizes. For downloaded file Finder
displays size the same as stat -f%z
. But original file is 1mb larger.
I had this problem too, after zipping the dmg and opening it in windows I found out that there is __MACOSX folder beside the dmg file which probably contains the icon. So distributing zip instead of dmg itself resolves the problem although it's not ideal.
// @manrueda
I'm experiencing this behavior as well.
Here is the answer
Compress the DMG before you upload it. There is an invisible side-car file for the DMG (makes no sense to me why). When you compress the DMG the sidecar file is included. When someone downloads the zip file OS X automatically displays the contents of the zip file - the DMG with its icon.