This question shows research effort; it is useful and clear
42
Save this question.
Show activity on this post.
I am a developer of iOS, and developed a mac app. Now I want to distribute my app so that a searched for it and found that we need to upload .app to Mac App Store it looks fine. While for self distribution we can have three options:
- is to share our app
- is to create .dmg file
- is to share .pkg file (Package Maker).
In pkg file my client want to install app without introduction, read me as well as license agreement, I removed the license and readme but unable to remove introduction section. Please help me out from hereā¦
Thanks in advance
2,8042 gold badges23 silver badges30 bronze badges
2
If you dont need any introduction, readme etc, the best option is to create a DMG.
You don't need any external tools for this.
- Copy your app to a new folder.
- Open Disk Utility -> File -> New Image -> Image From Folder.
- Select the folder where you have placed the App. Give a name for the DMG and save. This creates a distributable image for you.
If needed you can add a link to applications to DMG. It helps user in installing by drag and drop.
5 Comments
Can you please let me know the process of adding licence agreement to DMG file and also the process of adding a link to applications to DMG file?
I didn't find this worked as the disk utility would not allow the selection of .app(s). Any folder with .app extension remains greyed out and un-selectable! You guys must have special macs!!!
@WallyZ you have to add the .app file into a folder and then open disk utility -> File -> New Image -> Image From Folder.
@Akshay That's my problem. Xcode generates a folder containing the app and that folder already has a ".app" extension. So I can find the .app folder but I don't know what this .app file is!
@WalterZAMBOTTI this is not related to xCode. This method is used to create a dmg from an existing installed application that exists in your applications folder. Even then, you have to create a new folder, drag the app into the new folder and then use that folder to create a dmg. you can't crate dmg directly from a .app file
How to create a dmg file for a .app for mac.?
It's a subjective issue, but .dmg's are a good and popular way to distribute the apps - user double-clicks, drags app, ejects just as they would a USB stick, done.
You can get apps to help you build them, but its not too Hard with Disk Utility, you just need to mess around a little to make it look nice. Here is one way to do it:
- Use Disk Utility to create a new empty sparse bundle disk image
- Double-click the image to open it.
- Copy your app into the image.
- Make a link to /Applications in the image.
- Hide the toolbar/sidebar/etc. as desired.
- Using View Options set to always one in icon mode.
- Also add a background image if you like using View Options. Background images often contain text such as "Drag App to Application". Layout the app and /Applications icons to match your background image.
- In another Finder window eject the sparse bundle.
- In Disk Utility use Images -> Convert... to convert the sparse bundle to a read-only DMG
HTH
2 Comments
When I follow your instructions, several hidden files are shown (.DS_Store, .fseventsd, and .Trashes). This is despite the fact that I have not set Finder to show hidden files (i.e., it's set to 'defaults write com.apple.finder AppleShowAllFiles NO'). Is there a way to hide those files in the sparsebundle, and ultimately in the DMG?
I scripted my dmg creation, with create-dmg.
brew install create-dmg
My command is similar to the example:
create-dmg \
--volname "Application Installer" \
--volicon "application_icon.icns" \
--background "installer_background.png" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "Application.app" 200 190 \
--hide-extension "Application.app" \
--app-drop-link 600 185 \
"Application-Installer.dmg" \
"source_folder/"
Comments
Explore related questions
See similar questions with these tags.
