lib/omnibus/compressors/dmg.rb
def prettify_dmg
      log.info(log_key) { "Making the dmg all pretty and stuff" }

      render_template(resource_path("create_dmg.osascript.erb"),
        destination: "#{staging_dir}/create_dmg.osascript",
        variables: {
          volume_name: volume_name,
          pkg_name: packager.package_name,
          window_bounds: window_bounds,
          pkg_position: pkg_position,
        }
      )

      Dir.chdir(staging_dir) do
        shellout! <<-EOH.gsub(/^ {10}/, "")
          osascript "#{staging_dir}/create_dmg.osascript"
        EOH
      end
    end
def prettify_dmg
      log.info(log_key) { "Making the dmg all pretty and stuff" }

      render_template(resource_path("create_dmg.osascript.erb"),
        destination: "#{staging_dir}/create_dmg.osascript",
        variables: {
          volume_name: volume_name,
          pkg_name: packager.package_name,
          window_bounds: window_bounds,
          pkg_position: pkg_position,
        }
      )

      Dir.chdir(staging_dir) do
        shellout! <<-EOH.gsub(/^ {10}/, "")
          osascript "#{staging_dir}/create_dmg.osascript"
        EOH
      end
    end
Use Applescript to setup the DMG with pretty logos and colors.

 @return [void]