LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.68k stars 152 forks source link

Is it possible to change dmg icon by using appdmg #126

Closed Kulbear closed 7 years ago

Kulbear commented 7 years ago

Hi all,

I'm using appdmg to package one of my application to .dmg file. I can easily use a DIY icon for my application by setting a .icns file. However, after going through the entire documentation here I didn't find a way to customize my .dmg icon. After the packaging process completed, my .dmg is looks like screen shot 2016-10-10 at 4 00 18 pm which is not what I really want.

Is there any possible solution to my case? Any help is appreciated!

plrthink commented 7 years ago

I think actually it's just the icon option as the doc says:

icon (string, optional) - Path to your icon, which will be shown when mounted

Also you can check the code (here)[https://github.com/LinusU/node-appdmg/blob/master/lib/appdmg.js#L296] which indicate that it's the volume icon.