How to create a dmg file for .app for mac.?

I am an iOS developer and have developed an application for Mac. Now I want to distribute my application to find it and find that we need to download .app in the Mac App Store, it looks good. Although for self-distribution we can have three options:

  • - share our application
  • - create a .dmg file
  • is to share the .pkg file (Package Maker).

In the pkg file, my client wants to install the application without an introduction, read me, as well as the license agreement, I deleted the license and readme, but could not delete the introduction section. Please help me out of here ...

Thanks in advance

+17
source share
2 answers

If you do not need an introduction, readme, etc., the best option is to create a DMG.

For this you do not need external tools.

  • Copy the application to a new folder.
  • Open disk utility → File → New image → Image from folder.
  • Select the folder where you placed the application. Give the name DMG and save. This creates a distributed image for you.

If necessary, you can add a link to applications in the DMG. This helps the user to install by dragging and dropping.

+15
source

How to create a DMG file for .app for Mac.?

This is a subjective problem, but .dmg is a good and popular way to distribute applications - the user double-clicks and drags the application, removes it in the same way as a USB drive.

You can get applications to help you build them, but it's not too difficult with Disk Utility, you just need to mess around a bit to make it look beautiful. Here is one way to do this:

  1. Use Disk Utility to create a new empty sparse disk image
  2. Double-click the image to open it.
  3. Copy your application into the image.
  4. Link to / Applications in the picture.
  5. Hide toolbar / sidebar / etc. optional.
  6. Using the viewing options, always set one in icon mode.
  7. Also add a background image if you like to use viewing options. Background images often contain text such as "Drag and drop the application into the application." Arrange the application and application icons according to the background image.
  8. In another Finder window, remove the sparse bundle.
  9. In Disk Utility, use Images → Convert ... to convert a sparse package to read-only DMG.

NTN

+11
source

All Articles