script to generate .dmg image