LinusU / node-appdmg

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

🎉 Add overwrite option #151

Open cstruct opened 6 years ago

cstruct commented 6 years ago

This closes #130

If overwrite is specified we overwrite the target in the "Looking for target" step. One possible downside of this approach is that if we fail to create the DMG we will still cleanup the previous file. A possible fix to this is to work with a temporary file and rename it to replace the target when we have completed the DMG.

LinusU commented 6 years ago

Actually, maybe we should add this as an cli flag instead? Since it isn't really that tightly coupled with the image design?